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

Daniel D. Daugherty dcubed at openjdk.org
Tue Nov 19 21:00:57 UTC 2024


On Tue, 19 Nov 2024 17:04:22 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> @dcubed-ojdk is too busy, so I was asked to take over [https://github.com/openjdk/jdk/pull/18664](https://github.com/openjdk/jdk/pull/18664) and finish it.
>> 
>> That old PR contains all the details and also got some review comments, which I have tried to address in this new PR.
>> 
>> Tests run without failures on supported platforms.
>
> test/hotspot/jtreg/runtime/Monitor/TestRecursiveLocking.java line 465:
> 
>> 463:                 syncObj.runAlternateABTest();
>> 464:                 break;
>> 465: 
> 
> I was wondering if this test could be reduced to run both modes  in one execution, one after the other?

The configurability was intentional so that specific modes could be exercised independently. Also adding additional modes in the future is/was planned.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22238#discussion_r1849036833


More information about the hotspot-runtime-dev mailing list