--- a/src/hotspot/share/runtime/thread.cpp Wed Oct 03 09:46:46 2018 -0400
+++ b/src/hotspot/share/runtime/thread.cpp Wed Oct 03 15:05:46 2018 +0200
@@ -851,11 +851,9 @@
f->do_oop((oop*)&_pending_exception);
handle_area()->oops_do(f);
- if (MonitorInUseLists) {
- // When using thread local monitor lists, we scan them here,
- // and the remaining global monitors in ObjectSynchronizer::oops_do().
- ObjectSynchronizer::thread_local_used_oops_do(this, f);
- }
+ // We scan thread local monitor lists here, and the remaining global
+ // monitors in ObjectSynchronizer::oops_do().
+ ObjectSynchronizer::thread_local_used_oops_do(this, f);
}
void Thread::metadata_handles_do(void f(Metadata*)) {