[11] RFR(XS) 8202773: Unhandled oop in JavaThread::collect_counters

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed May 9 23:47:12 UTC 2018


https://bugs.openjdk.java.net/browse/JDK-8202773

Based on discussion in bug report MutexLocker should be removed from 
this code:

diff -r ae0ebd3cf949 src/hotspot/share/runtime/thread.cpp
--- a/src/hotspot/share/runtime/thread.cpp
+++ b/src/hotspot/share/runtime/thread.cpp
@@ -1467,7 +1467,6 @@

  void JavaThread::collect_counters(typeArrayOop array) {
    if (JVMCICounterSize > 0) {
-    MutexLocker tl(Threads_lock);
      JavaThreadIteratorWithHandle jtiwh;
      for (int i = 0; i < array->length(); i++) {
        array->long_at_put(i, _jvmci_old_thread_counters[i]);

Tested with tier1,tier2,tier2-graal,hs-precheckin-comp

-- 
Thanks,
Vladimir


More information about the hotspot-dev mailing list