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

Remove sneaky locking in class Monitor

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      There are certain types of global lock that may be held by a Java thread while it is blocked at a safepoint but before it has written the _owner field. These locks may be sneakily acquired by the VM thread during a safepoint to avoid deadlocks.
      Alternatively, one should identify all such locks, and ensure that Java threads never block at safepoints while holding them (_no_safepoint_check_flag). While it seems as though this could increase the time to reach a safepoint (or at least increase the mean, if not the variance), the latter approach might make for a cleaner, more maintainable JVM design.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pchilanomate Patricio Chilano Mateo
                Reporter:
                pchilanomate Patricio Chilano Mateo
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: