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

ZGC: Fix incorrect root iteration in ZHeapIterator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 12
    • 11, 12
    • hotspot
    • gc
    • b16
    • 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

            pliden Per Liden (Inactive)
            pliden Per Liden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: