JDK-8368798 : Should not test tiny heap size flag tests with AOTCache
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 26
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2025-09-26
  • Updated: 2025-12-09
  • Resolved: 2025-12-09
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.
Other
tbdResolved
Related Reports
Relates :  
Description
There are rather sensitive GC heap size tests that for example set the initial heap size to some really small number and tests how that works out.

An AOTCache might require loading objects which then exhausts the heap during bootstrapping. These tests should hence not run with -XX:AOTCache=... using the JTREG_AOT_JDK.

I think this includes:
gc/arguments/TestParallelHeapSizeFlags.java
gc/arguments/TestVerifyBeforeAndAfterGCFlags.java
runtime/7167069/PrintAsFlag.java
Comments
This affects only pre-integration builds of JEP 516.
09-12-2025

This should be closed.
09-12-2025

[~eosterlund] [~epavlova] is this JBS issue still relevant? Are there any test failures due to this issue? If not, we should close it. I don't see any problem listing using this bug ID (8368798).
09-12-2025

I think we can modify test/hotspot/jtreg/ProblemList-AotJdk.txt as part of JEP 516 as we find this kind of problem during pre-integration tests.
30-09-2025

As about runtime/7167069/PrintAsFlag.java I can't reproduce it. I tried both jdk master and you branch. Looking at test code it doesn't look like it is expected to fail in AOT mode.
26-09-2025

gc/arguments/TestVerifyBeforeAndAfterGCFlags.java uses "-Xmx5m -Xms5m -Xmn3m" which results in failing with "stdout: [[0.056s][error][aot] AOT cache has aot-linked classes but the archived heap objects cannot be loaded. Try increasing your heap size." when running with -XX:+UseParallelGC and JTREG_AOT_JDK Looks like this test should be also problem listed in ProblemList-AotJdk.txt.
26-09-2025

gc/arguments/TestParallelHeapSizeFlags.java was added into test/hotspot/jtreg/ProblemList-AotJdk.txt as part of 8368174 fix. Erik ([~eosterlund]), you need to sync your branch with master.
26-09-2025