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

C1 option -XX:+TimeEachLinearScan is broken

XMLWordPrintable

      java -Xcomp -XX:TieredStopAtLevel=1 -XX:+TimeEachLinearScan

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/c1/c1_LinearScan.hpp:169), pid=3854422, tid=3854440
      # assert(_cached_blocks.length() == ir()->linear_scan_order()->length()) failed: invalid cached block list
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+26) (fastdebug build 25-ea+26-LTS-3300)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+26-LTS-3300, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x8e0074] LinearScan::block_count() const+0x54

      Current CompileTask:
      C1:162 41 b 1 java.util.concurrent.ConcurrentHashMap::get (162 bytes)

      Stack: [0x00007754f4338000,0x00007754f4438000], sp=0x00007754f4435b30, free space=1014k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x8e0074] LinearScan::block_count() const+0x54 (c1_LinearScan.hpp:169)
      V [libjvm.so+0x8c53ff] LinearScanTimers::end_method(LinearScan*) [clone .part.0]+0xef
      V [libjvm.so+0x817d67] Compilation::emit_lir()+0x987
      V [libjvm.so+0x81a445] Compilation::compile_java_method()+0x275
      V [libjvm.so+0x81ad86] Compilation::compile_method()+0x266
      V [libjvm.so+0x81b4dd] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x35d
      V [libjvm.so+0x81ce3f] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ff
      V [libjvm.so+0xb37f18] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58
      V [libjvm.so+0xb390e8] CompileBroker::compiler_thread_loop()+0x578
      V [libjvm.so+0x108590b] JavaThread::thread_main_inner()+0x13b
      V [libjvm.so+0x1ad1746] Thread::call_run()+0xb6
      V [libjvm.so+0x1759058] thread_native_entry(Thread*)+0x128

            snatarajan Saranya Natarajan
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: