Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280844

Epoch shift synchronization point for Compiler threads is inadequate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Subcomponent:
      jfr
    • Resolved In Build:
      b23
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      Test: runtime/cds/appcds/dynamicArchive/JFRDynamicCDS.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S14416/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fdc8091a-cbef-4a20-a1a8-2734bdeacf60/runs/511e6326-3570-4d99-bcfc-3805b0440edf/workspace/open/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdLoadBarrier.inline.hpp:94), pid=80973, tid=39939
      # assert(((((JfrTraceIdBits::load(klass)) & ((JfrTraceIdEpoch::this_epoch_method_and_class_bits()))) != 0))) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (19.0+8) (fastdebug build 19-ea+8-388)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-ea+8-388, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.80973
      #
      # JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S16843/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/47cffc4c-91af-44a3-8c71-cd82fa17b906/runs/77ebb5c7-c062-429a-b41a-0609f3de168b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/1/hs_err_pid80973.jfr
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      --------------- T H R E A D ---------------

      Current thread (0x000000012b03c210): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=39939, stack(0x0000000172130000,0x0000000172333000)]


      Current CompileTask:
      C2: 1138 1187 4 jdk.internal.org.objectweb.asm.SymbolTable::put (150 bytes)

      Stack: [0x0000000172130000,0x0000000172333000], sp=0x00000001723323d0, free space=2056k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x10bdb80] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x5d8
      V [libjvm.dylib+0x10be2b8] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, char*)+0x40
      V [libjvm.dylib+0x5b3554] report_vm_error(char const*, int, char const*, char const*, ...)+0x80
      V [libjvm.dylib+0xecdf68] JfrTraceIdLoadBarrier::load(Klass const*, Method const*)+0x178
      V [libjvm.dylib+0x58bef0] void EventCompilation::writeData<EventWriterHost<EncoderHost<BigEndianEncoderImpl, BigEndianEncoderImpl>, EncoderHost<Varint128EncoderImpl, BigEndianEncoderImpl>, MemoryWriterHost<Adapter<JfrFlush>, StackObj, ExclusiveAccessAssert> > >(EventWriterHost<EncoderHost<BigEndianEncoderImpl, BigEndianEncoderImpl>, EncoderHost<Varint128EncoderImpl, BigEndianEncoderImpl>, MemoryWriterHost<Adapter<JfrFlush>, StackObj, ExclusiveAccessAssert> >&)+0x74
      V [libjvm.dylib+0x58bb80] JfrEvent<EventCompilation>::write_sized_event(JfrBuffer*, Thread*, JfrThreadLocal*, bool)+0x1a0
      V [libjvm.dylib+0x58b990] JfrEvent<EventCompilation>::write_event()+0xac
      V [libjvm.dylib+0x58b1a0] JfrEvent<EventCompilation>::commit()+0x64
      V [libjvm.dylib+0x579440] post_compilation_event(EventCompilation&, CompileTask*)+0xf4
      V [libjvm.dylib+0x578508] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x70c
      V [libjvm.dylib+0x577c24] CompileBroker::compiler_thread_loop()+0x29c
      V [libjvm.dylib+0x10195d0] JavaThread::thread_main_inner()+0x254
      V [libjvm.dylib+0x1016814] Thread::call_run()+0x21c
      V [libjvm.dylib+0xdc92f4] thread_native_entry(Thread*)+0x160
      C [libsystem_pthread.dylib+0x7240] _pthread_start+0x94

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgronlun Markus Grönlund
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: