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

Combining several C2 Print* flags asserts in xmlStream::pop_tag

XMLWordPrintable

    • b20

      Combining many print flags leads to:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/oracle/jdk/open/src/hotspot/share/utilities/xmlstream.cpp:206), pid=547411, tid=547430
      # assert(false) failed: bad tag in log

      Current CompileTask:
      C2: 49478 11381 4 compiler.codecache.stress.TestCaseImpl::method (31 bytes)

      Stack: [0x00007fd1fccac000,0x00007fd1fcdad000], sp=0x00007fd1fcda9b10, free space=1014k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x19ec571] xmlStream::pop_tag(char const*)+0x1f1
      V [libjvm.so+0x19ed594] xmlStream::tail(char const*)+0x14
      V [libjvm.so+0xa05dac] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x22fc
      V [libjvm.so+0x81f5f4] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x664
      V [libjvm.so+0xa15489] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd09
      V [libjvm.so+0xa16128] CompileBroker::compiler_thread_loop()+0x518
      V [libjvm.so+0x188d14e] JavaThread::thread_main_inner()+0x27e
      V [libjvm.so+0x1893610] Thread::call_run()+0x100
      V [libjvm.so+0x15745f4] thread_native_entry(Thread*)+0x104

      For example, running test/hotspot/jtreg/compiler/codecache/stress/UnexpectedDeoptimizationTest.java with the following flags:
      -XX:+PrintOpto -XX:+PrintIdeal -XX:+PrintOptoStatistics -XX:+PrintOptoAssembly -XX:+PrintParseStatistics -XX:+PrintOptoPeephole -XX:+PrintCFGBlockFreq -XX:+PrintLockStatistics -XX:+PrintPreciseRTMLockingStatistics -XX:+PrintEliminateLocks -XX:+PrintEscapeAnalysis -XX:+PrintEliminateAllocations -XX:+PrintOptimizePtrCompare -XX:+PrintOptimizeStringConcat -XX:+PrintDominators -XX:+PrintIntrinsics

            tholenstein Tobias Holenstein
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: