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

Remove incorrect assert during inline cache cleaning

XMLWordPrintable

    • gc
    • b24
    • x86_64
    • linux
    • Verified

      The following test failed in the JDK15 CI:

      applications/dacapo/Dacapo24H.java

      Here's a snippet from the log file:

      Stress process main method is started.
      [8015.038s][warning][gc] GC locker is held; pre-dump GC was skipped
      [18953.161s][warning][gc] GC locker is held; pre-dump GC was skipped
      [32484.890s][warning][gc] GC locker is held; pre-dump GC was skipped
      [41197.888s][warning][gc] GC locker is held; pre-dump GC was skipped
      [51669.786s][warning][gc] GC locker is held; pre-dump GC was skipped
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S328/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a60d293f-cb9e-4efc-b213-7c06b5345c60/runs/4a3f7cd6-e13c-4552-8767-085199ca011e/workspace/open/src/hotspot/share/code/compiledMethod.cpp:505), pid=13660, tid=13667
      # assert(!from->is_zombie()) failed: should not clean inline caches on zombies
      #
      # JRE version: Java(TM) SE Runtime Environment (15.0+22) (fastdebug build 15-ea+22-1006)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-ea+22-1006, mixed mode, tiered, z gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x91dce4] bool clean_if_nmethod_is_unloaded<CompiledIC>(CompiledIC*, unsigned char*, CompiledMethod*, bool)+0x144
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S264/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/29f0d461-e8a9-4983-abb9-f0fc88b7eea9/runs/53dd97b6-91dd-4580-b2a8-953c6d3b4502/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/core.13660)
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S264/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/29f0d461-e8a9-4983-abb9-f0fc88b7eea9/runs/53dd97b6-91dd-4580-b2a8-953c6d3b4502/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/hs_err_pid13660.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(279/26081)----------


      Here's the crashing thread's stack:

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

      Current thread (0x00007f4050092c80): GCTaskThread "ZWorker#2" [stack: 0x00007f4056d0c000,0x00007f4056e0c000] [id=13667]

      Stack: [0x00007f4056d0c000,0x00007f4056e0c000], sp=0x00007f4056e0aae0, free space=1018k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x91dce4] bool clean_if_nmethod_is_unloaded<CompiledIC>(CompiledIC*, unsigned char*, CompiledMethod*, bool)+0x144
      V [libjvm.so+0x921ea7] CompiledMethod::cleanup_inline_caches_impl(bool, bool)+0x447
      V [libjvm.so+0x922660] CompiledMethod::unload_nmethod_caches(bool)+0xb0
      V [libjvm.so+0x1831635] ZNMethodUnlinkClosure::do_nmethod(nmethod*)+0x405
      V [libjvm.so+0x1833db2] ZNMethodTableIteration::nmethods_do(NMethodClosure*)+0x72
      V [libjvm.so+0x18311a7] ZNMethodUnlinkTask::work()+0x27
      V [libjvm.so+0x185b17d] ZTask::GangTask::work(unsigned int)+0x1d
      V [libjvm.so+0x17e6e54] GangWorker::run_task(WorkData)+0x84
      V [libjvm.so+0x17e6f7e] GangWorker::loop()+0x2e
      V [libjvm.so+0x16a6860] Thread::call_run()+0x100
      V [libjvm.so+0x13abd96] thread_native_entry(Thread*)+0x116

            eosterlund Erik Ă–sterlund
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: