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

[lworld] runtime/valhalla/inlinetypes/WithFieldAccessorTest.java Xcomp C1 asserts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot

      Note: this occurs in the newer version of WithFieldAccessorTest.java in: https://github.com/openjdk/valhalla/pull/653

      With -Xcomp on, runtime/valhalla/inlinetypes/WithFieldAccessorTest.java asserts in C1:

      "assert(_offset >= 1) failed: illegal call to offset()"

      # Problematic frame:
      # V [libjvm.so+0x7add04] GraphBuilder::withfield(int)+0x444

      Current CompileTask:
      C1: 42586 6648 b 3 runtime.valhalla.inlinetypes.WithFieldAccessorTest::lambda$main$3 (8 bytes)

      Stack: [0x00007fffc2dc1000,0x00007fffc2ec1000], sp=0x00007fffc2ebe530, free space=1013k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x7add04] GraphBuilder::withfield(int)+0x444
      V [libjvm.so+0x7b4ead] GraphBuilder::iterate_bytecodes_for_block(int)+0x6dd
      V [libjvm.so+0x7b6b6d] GraphBuilder::iterate_all_blocks(bool)+0x9d
      V [libjvm.so+0x7b2a0d] GraphBuilder::try_inline_full(ciMethod*, bool, bool, Bytecodes::Code, Instruction*)+0xb0d
      V [libjvm.so+0x7b326f] GraphBuilder::try_inline(ciMethod*, bool, bool, Bytecodes::Code, Instruction*)+0x18f
      V [libjvm.so+0x7b4046] GraphBuilder::invoke(Bytecodes::Code)+0xcd6
      V [libjvm.so+0x7b4e3b] GraphBuilder::iterate_bytecodes_for_block(int)+0x66b
      V [libjvm.so+0x7b6b59] GraphBuilder::iterate_all_blocks(bool)+0x89
      V [libjvm.so+0x7b7e9f] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x67f
      V [libjvm.so+0x7c824d] IRScope::IRScope(Compilation*, IRScope*, int, ciMethod*, int, bool)+0x41d
      V [libjvm.so+0x7c8454] IR::IR(Compilation*, ciMethod*, int)+0xc4
      V [libjvm.so+0x78a06f] Compilation::build_hir() [clone .part.0]+0x22f
      V [libjvm.so+0x78ec36] Compilation::compile_java_method()+0x1b6
      V [libjvm.so+0x78fb10] Compilation::compile_method()+0x1d0
      V [libjvm.so+0x79058a] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x3ca
      V [libjvm.so+0x791ac3] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1a3
      V [libjvm.so+0xaf6af8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc88
      V [libjvm.so+0xaf78b8] CompileBroker::compiler_thread_loop()+0x668
      V [libjvm.so+0x19f6b3a] JavaThread::thread_main_inner()+0x25a
      V [libjvm.so+0x19fee80] Thread::call_run()+0x100
      V [libjvm.so+0x16b91d4] thread_native_entry(Thread*)+0x104

            fparain Frederic Parain
            dsimms David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: