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

OopStorage usage rules should be documented and checked

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 16
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated: