Crashes in CompileBroker::init_compiler_threads with -XX:+StressBailout and tracing enabled

XMLWordPrintable

      Crashes in CompileBroker::init_compiler_threads with -XX:+StressBailout and tracing enabled. I guess we enter the code path in [1] but there could be some timing problem.

      runtime/logging/RedefineClasses.java
      java/lang/management/MemoryMXBean/TestVerboseMemory.java

      The tests use

      Xlog:all=trace:file=all.log, or
      Xlog:all=trace:file=vm.log

      assert(tlh.includes(ct), "ct=" INTPTR_FORMAT " exited unexpectedly.", p2i(ct));

      maybe if the compilation fails really quickly?

      one hs_err shows.

      assert(tlh.includes(ct)) failed: ct=0x000000012b00e410 exited unexpectedly.

      and the last VM events show

      Event: 8.802 Thread 0x000000013a809010 Thread added: 0x000000012b00e410
      Event: 8.804 Thread 0x000000012b00e410 Thread exited: 0x000000012b00e410


      [1] https://github.com/openjdk/jdk/blob/cf0275d6654cfd2243398032a90a7db95c9bc631/src/hotspot/share/compiler/compileBroker.cpp#L993

      Seen on personal jobs/builds only so far but I assume mainline is affected.

      ===

      V [libjvm.so+0xbbfd96] CompileBroker::init_compiler_threads()+0xac6 (compileBroker.cpp:993)
      V [libjvm.so+0xbc00b2] CompileBroker::compilation_init(JavaThread*)+0x82 (compileBroker.cpp:695)
      V [libjvm.so+0x1bdcdc1] Threads::create_vm(JavaVMInitArgs*, bool*)+0xfa1 (threads.cpp:787)
      V [libjvm.so+0x124fea4] JNI_CreateJavaVM+0x54 (jni.cpp:3621)
      C [libjli.so+0x3e7f] JavaMain+0x8f (java.c:1506)
      C [libjli.so+0x8099] ThreadJavaMain+0x9 (java_md.c:646)

            Assignee:
            Unassigned
            Reporter:
            Daniel Skantz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: