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

OopStorage usage rules should be documented and checked

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc

      Description

      JDK-8251336 showed that recent code changes to use OopStorage were flawed because the release operation could be carried out whilst a safepoint were active.

      As [~rkennke] noted:

      In general, non-GC threads should not mess with GC roots (e.g.
      OopStorage) during safepoints. I don't think that this plays well with
      any GC. Not sure if it can be automatically detected, it sure would be
      nice if that would fire an assert or so.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: