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

[lworld] Buffering in C1 entry can trigger safepoint before nmethod entry barrier has been executed

    XMLWordPrintable

    Details

      Description

      TestCallingConventionC1.java fails with -XX:+UseZGC -Xcomp:

      # Internal Error (/oracle/valhalla_int/open/src/hotspot/share/gc/z/zVerify.cpp:43), pid=11415, tid=11432
      # guarantee(ZAddress::is_good(addr)) failed: Bad oop 0x0000040000a00000 found at 0x00007f2d9d842d98

      Stack: [0x00007f2b7de6f000,0x00007f2b7df6f000], sp=0x00007f2b7df6c310, free space=1012k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1a4f494] z_verify_oop(oop*)+0x74
      V [libjvm.so+0x1a13a87] ZNMethod::nmethod_oops_do(nmethod*, OopClosure*)+0x47
      V [libjvm.so+0x1a3986c] ZRootsIteratorCodeBlobClosure::do_code_blob(CodeBlob*)+0x3c
      V [libjvm.so+0x18654ce] JavaThread::oops_do(OopClosure*, CodeBlobClosure*)+0x18e
      V [libjvm.so+0x1a37e35] ZRootsIterator::do_java_threads(ZRootsIteratorClosure*)+0x175
      V [libjvm.so+0x1a3839f] ZRootsIterator::oops_do(ZRootsIteratorClosure*)+0xcf
      V [libjvm.so+0x1a4fc8d] ZVerify::before_zoperation()+0x10d
      V [libjvm.so+0x19f14c3] VM_ZOperation::doit()+0x43
      V [libjvm.so+0x1948bea] VM_Operation::evaluate()+0x18a
      V [libjvm.so+0x1975dbf] VMThread::evaluate_operation(VM_Operation*)+0x17f
      V [libjvm.so+0x1976d7f] VMThread::loop()+0x6ef
      V [libjvm.so+0x19770ca] VMThread::run()+0xca
      V [libjvm.so+0x18749a0] Thread::call_run()+0x100
      V [libjvm.so+0x1546c26] thread_native_entry(Thread*)+0x116

        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: