RFR 8222671 : thread_large/thread_large.java times out on MacOSX

gerard ziemski gerard.ziemski at oracle.com
Wed Aug 5 14:49:28 UTC 2020


hi all,

Please review this new test that replaces a closed (and flawed) one, 
which was causing time out issues on Mac OS X.

The new test takes the main characteristic of the old test, which is 
creating a large number of threads, but in a robust and deterministic 
way - we create as many threads as the process allows and expect the VM 
to throw OOM exception to let us know when we reach the limit - then we 
perform a simple work unit for each thread (setting its name and 
verifying it back), then simply exit.

To make it more robust we use the Thread.wait(TIMEOUT) instead of the 
Thread.wait() as in the original.

To keep things nice and simple we use CountDownLatch objects for 
synchronization between the main and worker threads (thank you David).

bug link at https://bugs.openjdk.java.net/browse/JDK-8222671
open webrev at http://cr.openjdk.java.net/~gziemski/8222671_rev1
testing: passes Mach5 hs-tier1,2,3,4,5


cheers


More information about the hotspot-runtime-dev mailing list