RFR: 8131745: java/lang/management/ThreadMXBean/AllThreadIds.java still fails intermittently
Daniil Titov
daniil.x.titov at oracle.com
Mon May 18 17:31:18 UTC 2020
Please review the change [1] that fixes an intermittent failure of the test.
This test creates and destroys a given number of daemon/user threads and validates the count of those started/stopped threads against values returned from ThreadMXBean thread counts. The problem here is that if some internal threads is started ( e.g. " HotSpotGraalManagement Bean Registration"), or destroyed (e.g. "JVMCI CompilerThread ") the test hangs waiting for expected number of live threads.
The fix limits the time the test is waiting for desired number of live threads and in case if this limit is exceeded the test repeats itself.
Testing. Test with Graal on and Mach5 tier1-tier7 test passed.
[1] http://cr.openjdk.java.net/~dtitov/8131745/webrev.01
[2] https://bugs.openjdk.java.net/browse/JDK-8131745
Thank you,
Daniil
More information about the serviceability-dev
mailing list