@@ -699,15 +699,6 @@ void Thread::print_owned_locks_on(outputStream* st) const {
699699}
700700#endif // ASSERT
701701
702- // We had to move these methods here, because vm threads get into ObjectSynchronizer::enter
703- // However, there is a note in JavaThread::is_lock_owned() about the VM threads not being
704- // used for compilation in the future. If that change is made, the need for these methods
705- // should be revisited, and they should be removed if possible.
706-
707- bool Thread::is_lock_owned (address adr) const {
708- return is_in_full_stack (adr);
709- }
710-
711702bool Thread::set_as_starting_thread () {
712703 assert (_starting_thread == NULL , " already initialized: "
713704 " _starting_thread=" INTPTR_FORMAT, p2i (_starting_thread));
@@ -1035,8 +1026,6 @@ JavaThread::JavaThread() :
10351026 _current_waiting_monitor(NULL ),
10361027 _Stalled(0 ),
10371028
1038- _monitor_chunks(nullptr ),
1039-
10401029 _suspend_flags(0 ),
10411030 _async_exception_condition(_no_async_condition),
10421031 _pending_async_exception(nullptr ),
@@ -1573,13 +1562,7 @@ JavaThread* JavaThread::active() {
15731562}
15741563
15751564bool JavaThread::is_lock_owned (address adr) const {
1576- if (Thread::is_lock_owned (adr)) return true ;
1577-
1578- for (MonitorChunk* chunk = monitor_chunks (); chunk != NULL ; chunk = chunk->next ()) {
1579- if (chunk->contains (adr)) return true ;
1580- }
1581-
1582- return false ;
1565+ return is_in_full_stack (adr);
15831566}
15841567
15851568oop JavaThread::exception_oop () const {
@@ -1590,23 +1573,6 @@ void JavaThread::set_exception_oop(oop o) {
15901573 Atomic::store (&_exception_oop, o);
15911574}
15921575
1593- void JavaThread::add_monitor_chunk (MonitorChunk* chunk) {
1594- chunk->set_next (monitor_chunks ());
1595- set_monitor_chunks (chunk);
1596- }
1597-
1598- void JavaThread::remove_monitor_chunk (MonitorChunk* chunk) {
1599- guarantee (monitor_chunks () != NULL , " must be non empty" );
1600- if (monitor_chunks () == chunk) {
1601- set_monitor_chunks (chunk->next ());
1602- } else {
1603- MonitorChunk* prev = monitor_chunks ();
1604- while (prev->next () != chunk) prev = prev->next ();
1605- prev->set_next (chunk->next ());
1606- }
1607- }
1608-
1609-
16101576// Asynchronous exceptions support
16111577//
16121578// Note: this function shouldn't block if it's called in
@@ -1994,13 +1960,6 @@ void JavaThread::oops_do_no_frames(OopClosure* f, CodeBlobClosure* cf) {
19941960
19951961 DEBUG_ONLY (verify_frame_info ();)
19961962
1997- if (has_last_Java_frame ()) {
1998- // Traverse the monitor chunks
1999- for (MonitorChunk* chunk = monitor_chunks (); chunk != NULL ; chunk = chunk->next ()) {
2000- chunk->oops_do (f);
2001- }
2002- }
2003-
20041963 assert (vframe_array_head () == NULL , " deopt in progress at a safepoint!" );
20051964 // If we have deferred set_locals there might be oops waiting to be
20061965 // written
0 commit comments