RFR: JDK-8289620: gtest/MetaspaceUtilsGtests.java failed with unexpected stats values

Thomas Stuefe stuefe at openjdk.org
Tue Jul 5 18:48:03 UTC 2022


I cannot reproduce this on my machine, but the comparison is obviously wrong in the gtest. The statistics API returns used/committed/reserved metaspace, and used can be equal to committed, committed equal to reserved, albeit rarely.

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

Commit messages:
 - switch test comparisons to less-or-equal

Changes: https://git.openjdk.org/jdk/pull/9381/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9381&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8289620
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/9381.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9381/head:pull/9381

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


More information about the hotspot-runtime-dev mailing list