JDK-8370943 : Support heap expansion during startup in Serial and Parallel
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-10-30
  • Updated: 2025-11-11
  • Resolved: 2025-10-31
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 26
26 b23Fixed
Related Reports
Causes :  
Relates :  
Relates :  
Relates :  
Description
During startup, before `is_init_completed` returns true, GC can't occur.

For example, in `VM_GC_Operation::doit_prologue`:

  if (!is_init_completed()) {
    vm_exit_during_initialization(
      err_msg("GC triggered before VM initialization completed. Try increasing "
              "NewSize, current value %zu%s.",
              byte_size_in_proper_unit(NewSize),
              proper_unit_for_byte_size(NewSize)));
  }

To better handle the scenario of the initial heap being too small or too much allocation during startup, one can expand heap depending on `is_init_completed`.
Comments
Changeset: 67a81c47 Branch: master Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2025-10-31 13:33:11 +0000 URL: https://git.openjdk.org/jdk/commit/67a81c476f1e3c0d6aeca0d0aa2148efcb70a180
31-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28059 Date: 2025-10-30 11:41:20 +0000
30-10-2025