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

Inconsistent constant field values observed during compilation

    XMLWordPrintable

Details

    • b08
    • x86_64, aarch64
    • generic

    Description

      The following test failed in the JDK20 CI:

      serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/331)----------
      command: main -agentlib:DynamicCodeGenerated DynamicCodeGeneratedTest
      reason: User specified action: run main/othervm/native -agentlib:DynamicCodeGenerated DynamicCodeGeneratedTest
      started: Tue Oct 18 04:57:40 UTC 2022
      Mode: othervm [/othervm specified]
      finished: Tue Oct 18 04:58:43 UTC 2022
      elapsed time (seconds): 63.775
      ----------configuration:(0/0)----------
      ----------System.out:(21/1329)*----------
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=\\phaseX.cpp:1751
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\\sb\\prod\\1665986525\\workspace\\open\\src\\hotspot\\share\\opto\\phaseX.cpp:1751), pid=27764, tid=6024
      # assert(t->meet(t0) == t->remove_speculative()) failed: Not monotonic
      #
      # JRE version: Java(TM) SE Runtime Environment (20.0+20) (fastdebug build 20-ea+20-1411)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+20-1411, compiled mode, sharing, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: C:\\sb\\prod\\1666068570\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\2\\hs_err_pid27764.mdmp
      #
      # An error report file with more information is saved as:
      # C:\\sb\\prod\\1666068570\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\2\\hs_err_pid27764.log
      #
      # Compiler replay data is saved as:
      # C:\\sb\\prod\\1666068570\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\2\\replay_pid27764.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(0/0)----------
      ----------rerun:(48/6421)*----------

      Here's the crashing thread's stack:

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

      Current thread (0x000002685b675090): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=6024, stack(0x000000e8ec100000,0x000000e8ec200000)]


      Current CompileTask:
      C2: 57269 15000 b java.lang.invoke.StringConcatFactory::newArray (35 bytes)

      Stack: [0x000000e8ec100000,0x000000e8ec200000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xc08351] os::win32::platform_print_native_stack+0xf1 (os_windows_x86.cpp:236)
      V [jvm.dll+0xe6ac0e] VMError::report+0x10be (vmError.cpp:841)
      V [jvm.dll+0xe6c704] VMError::report_and_die+0x644 (vmError.cpp:1700)
      V [jvm.dll+0xe6ce44] VMError::report_and_die+0x64 (vmError.cpp:1481)
      V [jvm.dll+0x57c6e7] report_vm_error+0xb7 (debug.cpp:285)
      V [jvm.dll+0xc453f9] PhaseCCP::analyze+0x569 (phaseX.cpp:1795)
      V [jvm.dll+0xc42d6f] PhaseCCP::PhaseCCP+0x10f (phaseX.cpp:1738)
      V [jvm.dll+0x511a71] Compile::Optimize+0xc51 (compile.cpp:2396)
      V [jvm.dll+0x50ed3d] Compile::Compile+0x148d (compile.cpp:832)
      V [jvm.dll+0x4355d5] C2Compiler::compile_method+0x145 (c2compiler.cpp:116)
      V [jvm.dll+0x528af4] CompileBroker::invoke_compiler_on_method+0x884 (compileBroker.cpp:2243)
      V [jvm.dll+0x5262ed] CompileBroker::compiler_thread_loop+0x23d (compileBroker.cpp:1917)
      V [jvm.dll+0x7f2bd2] JavaThread::thread_main_inner+0x282 (javaThread.cpp:700)
      V [jvm.dll+0xde5867] Thread::call_run+0x257 (thread.cpp:229)
      V [jvm.dll+0xc06c68] thread_native_entry+0xb8 (os_windows.cpp:547)
      C [ucrtbase.dll+0x2268a]
      C [KERNEL32.DLL+0x17974]
      C [ntdll.dll+0x5a0b1]

      The failing assertion is similar to one that was fixed in jdk-20+20-1404,
      but this failure happened in jdk-20+20-1411-tier7:

      JDK-8293531 C2: some vectorapi tests fail assert "Not monotonic" with flag -XX:TypeProfileLevel=222

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: