RFR: 8274522: java/lang/management/ManagementFactory/MXBeanException.java test fails with Shenandoah
Aleksey Shipilev
shade at openjdk.java.net
Wed Sep 29 17:58:44 UTC 2021
Fails like this:
$ CONF=linux-x86_64-server-fastdebug make run-test TEST=java/lang/management/ManagementFactory/MXBeanException.java TEST_VM_OPTS="-XX:+UseShenandoahGC"
...
java.lang.NullPointerException: Cannot invoke "java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)" because "MXBeanException.pool" is null
This test tries to find the pool that is `!p.isUsageThresholdSupported()`, and for Shenandoah there is no such pool. Likewise with ZGC, which is already filtered.
Additional testing:
- [x] Affected test is now skipped for Shenandoah
- [x] Affected test is still skipped for Z
- [x] Affected test is still passing for G1
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.java.net/jdk/pull/5757/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5757&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8274522
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/5757.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5757/head:pull/5757
PR: https://git.openjdk.java.net/jdk/pull/5757
More information about the serviceability-dev
mailing list