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

[MVT] Escape analysis does not support value type return with reference field

    XMLWordPrintable

    Details

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

      Description

      Executing ValueTypeTestBench with -Xcomp fails with:

      # Internal Error (/oracle/valhalla_cp/hotspot/src/share/vm/opto/escape.cpp:3182), pid=3525, tid=3546
      # assert(false) failed: EA: missing allocation reference path

      Current CompileTask:
      C2: 16713 1030 b compiler.valhalla.valuetypes.MyValue3::create (172 bytes)

      Stack: [0x00007fac742fe000,0x00007fac743ff000], sp=0x00007fac743f92d0, free space=1004k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x174003c] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x18c
      V [libjvm.so+0x1740e0f] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xb2d09d] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
      V [libjvm.so+0xc41f97] ConnectionGraph::split_unique_types(GrowableArray<Node*>&, GrowableArray<ArrayCopyNode*>&)+0x817
      V [libjvm.so+0xc45a63] ConnectionGraph::compute_escape()+0x12a3
      V [libjvm.so+0xc46415] ConnectionGraph::do_analysis(Compile*, PhaseIterGVN*)+0x185
      V [libjvm.so+0xa940e5] Compile::Optimize()+0x945
      V [libjvm.so+0xa95c5e] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x126e
      V [libjvm.so+0x892932] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x2e2
      V [libjvm.so+0xaa26dc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x56c
      V [libjvm.so+0xaa3a18] CompileBroker::compiler_thread_loop()+0x478
      V [libjvm.so+0x167f19e] JavaThread::thread_main_inner()+0x22e
      V [libjvm.so+0x13c4bd2] thread_native_entry(Thread*)+0x112
      C [libpthread.so.0+0x8184] start_thread+0xc4

        Attachments

          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: