JDK-8265268 : Unify ReservedSpace reservation code in initialize and try_reserve_heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-15
  • Updated: 2021-04-29
  • Resolved: 2021-04-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b20Fixed
Related Reports
Relates :  
Relates :  
Description
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.
Comments
Changeset: 5db64c33 Author: Stefan Johansson <sjohanss@openjdk.org> Date: 2021-04-23 12:06:05 +0000 URL: https://git.openjdk.java.net/jdk/commit/5db64c33
23-04-2021