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

Possibly miss to iterate monitors on thread exit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      generic

      Description

      As a followup to JDK-8180175: ObjectSynchronizer only needs to iterate in-use monitors, David Holmes noted:

      "When a thread terminates, omFlush is used to transfer the thread's inUseList to the global inUseList. This happens after the thread has been removed from the _threads_list and can run concurrently with a safepoint. This means that there is a window of time where the monitors in the thread's inUseList will not be seen by the safepoint oops_do processing:
      - the thread oops_do won't be called because the thread is not in the thread's list
      - the monitors are not yet in the global in-use-list "

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rkennke Roman Kennke
                Reporter:
                rkennke Roman Kennke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: