ZGC: Make ZGranuleMap ZAddress agnostic

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: 14
    • Component/s: hotspot
    • gc
    • b21

      The ZGranuleMap is hard-coded to only work with ZAddresses (pointers into one of the heap views). It checks that no null-pointer is passed in, and then scales away the metadata/view bits.

      Change it to only work with offsets [0, <max offset>). And move ZAddress code to callers. This will allow us to easily use ZGranuleMap for both virtual addresses and physical memory offsets.

            Assignee:
            Stefan Karlsson
            Reporter:
            Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: