Add CollectedHeap::reserved_range() API to return reserved heap memory range

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 22
    • Component/s: hotspot
    • None
    • gc

      To implement https://bugs.openjdk.org/browse/JDK-8310160 we need to add an API that returns the reserved heap memory range. All collectors except ZGC set CollectedHeap::_reserved during init but only some of them expose it as an API - ParallelScavengeHeap::reserved_region(), GenCollectedHeap::reserved_region() and ShenandoahHeap:::reserved_region().
      Instead of having each collector exposing an API we can instead have a common API CollectedHeap::reserved_region().

            Assignee:
            Ashutosh Mehra
            Reporter:
            Ashutosh Mehra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: