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

JvmtiExport::check_suspend_at_safepoint accesses oops in blocked state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: repo-loom
    • Component/s: hotspot
    • Labels:
      None

      Description

      Oops are accessed in the blocked state:

      V [libjvm.so+0x32616c] AccessInternal::check_access_thread_state()+0xbc
      V [libjvm.so+0x135d565] VThreadList::find(oop) const+0x35
      V [libjvm.so+0x135e208] JvmtiVTSuspender::is_vthread_suspended(oop)+0x78
      V [libjvm.so+0x1312997] JvmtiExport::check_suspend_at_safepoint(JavaThread*)+0x167
      V [libjvm.so+0xfa3a28] InterpreterRuntime::at_safepoint(JavaThread*)+0xe8
      j java.util.concurrent.SynchronousQueue$TransferStack.transfer(Ljava/lang/Object;ZJ)Ljava/lang/Object;+120 java.base@19-internal

      allowing safepoints to invalidate the oops while they are accessed.

      Found with extra checks in the Access API, while running GetSetLocalTest.

        Attachments

          Activity

            People

            Assignee:
            sspitsyn Serguei Spitsyn
            Reporter:
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: