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

ZGC: Fix incorrect root iteration in ZHeapIterator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b16
    • Verification:
      Verified

      Description

      The ZHeapIterator should not make callbacks to the user supplied ObjectClosure while iterating over roots. Instead all roots should be pushed to the stack first, before any call to the user supplied ObjectClosure is made. This is needed since the user supplied ObjectClosure could otherwise modify the root set (e.g. the JVMTI TagMap) while we're iterating over it, which can lead to memory corruption.

        Attachments

          Activity

            People

            Assignee:
            pliden Per Liden
            Reporter:
            pliden Per Liden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: