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

[lworld] C2 compilation fails with assert(f->is_flattened()) failed: should be flattened

    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

      # Internal Error (/oracle/valhalla1/open/src/hotspot/share/opto/valuetypenode.cpp:442), pid=12134, tid=12148
      # assert(f->is_flattened()) failed: should be flattened
      #
      # JRE version: Java(TM) SE Runtime Environment (14.0) (fastdebug build 14-internal+0-adhoc.tobias.open)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-internal+0-adhoc.tobias.open, mixed mode, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x1945dc5] ValueTypeBaseNode::replace_call_results(GraphKit*, Node*, Compile*)+0x9e5

      Current CompileTask:
      C2: 2216 76 b compiler.valhalla.valuetypes.TestBasicFunctionality::test36 (49 bytes)

      Stack: [0x00007f52a60a0000,0x00007f52a61a1000], sp=0x00007f52a619c180, free space=1008k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1945dc5] ValueTypeBaseNode::replace_call_results(GraphKit*, Node*, Compile*)+0x9e5
      V [libjvm.so+0x825084] LateInlineCallGenerator::do_late_inline()+0xbd4
      V [libjvm.so+0x9eb372] Compile::inline_incrementally_one()+0x102
      V [libjvm.so+0x9f39b8] Compile::inline_incrementally(PhaseIterGVN&)+0x148
      V [libjvm.so+0x9f646b] Compile::Optimize()+0x27b
      V [libjvm.so+0x9f8319] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x10b9
      V [libjvm.so+0x81ba4d] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x10d
      V [libjvm.so+0xa049d4] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x334
      V [libjvm.so+0xa05a28] CompileBroker::compiler_thread_loop()+0x4f8
      V [libjvm.so+0x18b72a6] JavaThread::thread_main_inner()+0x1b6
      V [libjvm.so+0x18bc966] Thread::call_run()+0xf6
      V [libjvm.so+0x148dc2e] thread_native_entry(Thread*)+0x10e

      diff -r 598fb53656f9 test/hotspot/jtreg/compiler/valhalla/valuetypes/ValueTypeTest.java
      --- a/test/hotspot/jtreg/compiler/valhalla/valuetypes/ValueTypeTest.java Wed Jul 03 14:27:42 2019 +0200
      +++ b/test/hotspot/jtreg/compiler/valhalla/valuetypes/ValueTypeTest.java Wed Jul 03 16:17:50 2019 +0200
      @@ -233,7 +233,7 @@
                       "-XX:+AlwaysIncrementalInline",
                       "-XX:ValueArrayElemMaxFlatOops=-1",
                       "-XX:ValueArrayElemMaxFlatSize=-1",
      - "-XX:ValueFieldMaxFlatSize=-1",
      + "-XX:ValueFieldMaxFlatSize=0",
                       "-XX:+ValueTypePassFieldsAsArgs",
                       "-XX:+ValueTypeReturnedAsFields"};
               case 1: return new String[] {

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: