Integrated: 8371986: Remove the default value of InitialRAMPercentage
Joel Sikström
jsikstro at openjdk.org
Tue Dec 2 12:41:07 UTC 2025
On Thu, 27 Nov 2025 09:53:56 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:
> Hello,
>
> This RFE changes the default of `InitialRAMPercentage` to 0, effectively removing its default value. Please see the CSR for specific details on this change.
>
> Changing the default value to 0 results in the behavior that the initial heap size (InitialHeapSize) is set to the minimum heap size (MinHeapSize). This is because of the following lines in `Arguments::set_heap_size()`, which takes the MAX value of MinHeapSize as well:
>
> uint64_t initial_memory = (uint64_t)(((double)MaxRAM * InitialRAMPercentage) / 100);
> ...
>
> reasonable_initial = MAX3(reasonable_initial, reasonable_minimum, MinHeapSize);
> reasonable_initial = MIN2(reasonable_initial, MaxHeapSize);
>
>
> This change improves startup performance for all GCs, but affects the time-to-peak performance in some out-of-the-box configurations for some GCs. This is mainly visible in ParallelGC.
This pull request has now been integrated.
Changeset: 6abf7b6f
Author: Joel Sikström <jsikstro at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6abf7b6f226adb580718a314dc218d87289c80ac
Stats: 4 lines in 3 files changed: 0 ins; 1 del; 3 mod
8371986: Remove the default value of InitialRAMPercentage
Reviewed-by: shade, aboldtch
-------------
PR: https://git.openjdk.org/jdk/pull/28530
More information about the hotspot-dev
mailing list