RFR: 8274522: java/lang/management/ManagementFactory/MXBeanException.java test fails with Shenandoah

Mandy Chung mchung at openjdk.java.net
Wed Sep 29 18:26:32 UTC 2021


On Wed, 29 Sep 2021 17:46:46 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> 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

Marked as reviewed by mchung (Reviewer).

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

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


More information about the serviceability-dev mailing list