RFR: 8274523: java/lang/management/MemoryMXBean/MemoryTest.java test should handle Shenandoah

Aleksey Shipilev shade at openjdk.java.net
Wed Sep 29 18:06:47 UTC 2021

Currently it fails with:

$ CONF=linux-x86_64-server-fastdebug make run-test TEST=java/lang/management/MemoryMXBean/MemoryTest.java

java.lang.RuntimeException: TEST FAILED: Number of heap pools = 1 but expected <= 3 and >= 3

Z already handles it with a special configuration, Shenandoah should do the same. 

Additional testing:
 - [x] Affected test now works for Shenandoah
 - [x] Affected test still works for Z
 - [x] Affected test still works for G1


Commit messages:
 - Fix

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

PR: https://git.openjdk.java.net/jdk/pull/5758

More information about the core-libs-dev mailing list