Unify ReservedSpace reservation code in initialize and try_reserve_heap

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 17
    • Component/s: hotspot
    • None
    • gc
    • b20

      The code in ReservedSpace::initialize(...) and ReservedHeapSpace::try_reserve_heap(...) is very similar and more or less does the same things. The difference between them is logging and how errors are handled.

      The code could be unified to make it easier to do changes to the reservation code without having to change two places.

      This change is a step towards JDK-8261527.

            Assignee:
            Stefan Johansson
            Reporter:
            Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: