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

[lworld] C2 compilation fails with "Not a Long" assert during matching

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      After merging JDK-8262355 in, we hit the following assert on machines supporting AVX 3:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (t:\workspace\open\src\hotspot\share\opto/type.hpp:1775), pid=6312, tid=9680
      # assert(_base == Long) failed: Not a Long

      Current CompileTask:
      C2: 399 28 b jdk.internal.module.Builder::newExports (11 bytes)

      Stack: [0x0000006fae800000,0x0000006fae900000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xb35b91] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:235)
      V [jvm.dll+0xd77cb7] VMError::report+0xfc7 (vmError.cpp:739)
      V [jvm.dll+0xd7963e] VMError::report_and_die+0x7fe (vmError.cpp:1549)
      V [jvm.dll+0xd79d54] VMError::report_and_die+0x64 (vmError.cpp:1330)
      V [jvm.dll+0x4ef727] report_vm_error+0xb7 (debug.cpp:282)
      V [jvm.dll+0x1e284] TypeLong::as_self+0x34 (type.hpp:710)
      V [jvm.dll+0x52bde6] State::_sub_Op_ClearArray+0xa6 (dfa_x86.cpp:3786)
      V [jvm.dll+0x516815] State::DFA+0xf85 (dfa_x86.cpp:17815)
      V [jvm.dll+0xa6d68d] Matcher::Label_Root+0x77d (matcher.cpp:1718)
      V [jvm.dll+0xa74941] Matcher::match_tree+0x241 (matcher.cpp:1522)
      V [jvm.dll+0xa7751d] Matcher::xform+0x56d (matcher.cpp:1127)
      V [jvm.dll+0xa72e85] Matcher::match+0x9f5 (matcher.cpp:389)
      V [jvm.dll+0x4a048c] Compile::Code_Gen+0xac (compile.cpp:3197)
      V [jvm.dll+0x49f49a] Compile::Compile+0x169a (compile.cpp:839)
      V [jvm.dll+0x3c847c] C2Compiler::compile_method+0x10c (c2compiler.cpp:106)
      V [jvm.dll+0x4bbeee] CompileBroker::invoke_compiler_on_method+0x94e (compileBroker.cpp:2310)
      V [jvm.dll+0x4b9517] CompileBroker::compiler_thread_loop+0x2b7 (compileBroker.cpp:1984)
      V [jvm.dll+0xd00567] JavaThread::thread_main_inner+0x1f7 (thread.cpp:1465)
      V [jvm.dll+0xcf7014] Thread::call_run+0x1b4 (thread.cpp:414)
      V [jvm.dll+0xb344ee] thread_native_entry+0xae (os_windows.cpp:552)
      C [ucrtbase.dll+0x1fb80]
      C [KERNEL32.DLL+0x84d4]
      C [ntdll.dll+0x51781]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thartmann Tobias Hartmann
              Reporter:
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: