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

[lworld] TestNativeClone fails with assert(!obj->is_ValueType()) failed: should not cast value type

    Details

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

      Description

      When executed with -Xcomp, TestNativeClone fails with:

      Current CompileTask:
      C2: 1621 31 b compiler.valhalla.valuetypes.MyValue/0x0000000800091c40::MyValue (5 bytes)

      Stack: [0x00007f759c0d5000,0x00007f759c1d6000], sp=0x00007f759c1d2650, free space=1013k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1b05be3] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x183
      V [libjvm.so+0x1b06bcf] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xc5bd2a] report_vm_error(char const*, int, char const*, char const*, ...)+0x12a
      V [libjvm.so+0xf3231f] GraphKit::cast_not_null(Node*, bool)+0x19f
      V [libjvm.so+0x94637b] VirtualCallGenerator::generate(JVMState*)+0x47b
      V [libjvm.so+0xd65aed] Parse::do_call()+0xf1d
      V [libjvm.so+0x173a537] Parse::do_one_bytecode()+0x1a87
      V [libjvm.so+0x172725a] Parse::do_one_block()+0x39a
      V [libjvm.so+0x1727e60] Parse::do_all_blocks()+0x1c0
      V [libjvm.so+0x172b978] Parse::Parse(JVMState*, ciMethod*, float)+0xe28
      V [libjvm.so+0x94384c] ParseGenerator::generate(JVMState*)+0x1fc
      V [libjvm.so+0xb66a3f] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x101f
      V [libjvm.so+0x941052] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x302
      V [libjvm.so+0xb746a0] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3c0
      V [libjvm.so+0xb75379] CompileBroker::compiler_thread_loop()+0x259
      V [libjvm.so+0x1a164d7] JavaThread::thread_main_inner()+0x287
      V [libjvm.so+0x1a16731] JavaThread::run()+0x191
      V [libjvm.so+0x16c372a] thread_native_entry(Thread*)+0xfa

        Attachments

          Issue Links

            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: