RFR: 8329351: add runtime/Monitor/TestRecursiveLocking.java for recursive Java monitor stress testing

Andrey Turbanov aturbanov at openjdk.org
Tue Apr 9 19:34:13 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.

test/hotspot/jtreg/runtime/Monitor/TestRecursiveLocking.java line 517:

> 515: 
> 516:     public void waitForStart() {
> 517:         synchronized(waiter) {

Suggestion:

        synchronized (waiter) {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18664#discussion_r1558184683


More information about the hotspot-runtime-dev mailing list