RFR: 8329351: add runtime/Monitor/TestRecursiveLocking.java for recursive Java monitor stress testing
Daniel D. Daugherty
dcubed at openjdk.org
Thu Apr 18 21:24:55 UTC 2024
On Fri, 5 Apr 2024 19:23:52 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:
> The first stress test to be added is:
>
> runtime/Monitor/TestRecursiveLocking.java
>
> It has been tested with a couple of 12 hour runs on my MBP13:
> - 3 build configs: release, fastdebug, slowdebug, 4 hours each, total 12 hours
> - 18 test configs, 800 seconds each, total 4 hours
>
> The default configuration has been tested in Mach5 Tier2 and the
> StressWrapper_TestRecursiveLocking_36M.java version has been
> tested in Mach5 Tier3.
I'm finally able to get back to this PR!
@AlanBateman
> If you refactor SyncThread to wrap rather than extend then it should be straight-forward.
I won't try to do that in this PR, but can you refer me to an existing test that you
consider a good example for using both regular threads and virtual threads? Is
there some sort of command line switch option?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18664#issuecomment-2065345783
More information about the hotspot-runtime-dev
mailing list