RFR: 8371320: runtime/ErrorHandling/PrintVMInfoAtExitTest.java fails with unexpected amount for Java Heap reserved memory [v2]

Paul Hübner phubner at openjdk.org
Thu Nov 13 12:02:56 UTC 2025


> Hi all,
> 
> In [JDK-8364741](https://bugs.openjdk.org/browse/JDK-8364741) it was discovered that asan reserves a bit more heap. The test got patched by checking for asan and adjusting the expectation, respectively.
> 
> It turns out that, rarely, we do reserve more memory even without asan enabled. This change updates the test:
> a) to ensure that some sort of reservation size is reported; and
> b) to extract the reserved amount and assert that it is no less than the committed amount
> 
> Testing: Ran tier1. Stress tested the individual test with 5x100 repetitions per platform (Linux x64, AArch64; macOS x64, AArch64; Windows x64).

Paul Hübner has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Review suggestion.
 - Merge branch 'master' into JDK-8371320
 - Use regular expression based matching instead.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/28179/files
  - new: https://git.openjdk.org/jdk/pull/28179/files/cf71e104..95ee671c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28179&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28179&range=00-01

  Stats: 169300 lines in 969 files changed: 114699 ins; 26184 del; 28417 mod
  Patch: https://git.openjdk.org/jdk/pull/28179.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28179/head:pull/28179

PR: https://git.openjdk.org/jdk/pull/28179


More information about the hotspot-runtime-dev mailing list