RFR: 8329351: add runtime/Monitor/TestRecursiveLocking.java for recursive Java monitor stress testing
Daniel D. Daugherty
dcubed at openjdk.org
Thu Apr 18 21:50:58 UTC 2024
On Tue, 16 Apr 2024 23:09:07 GMT, Mikhailo Seledtsov <mseledtsov at openjdk.org> wrote:
>> test/hotspot/jtreg/runtime/Monitor/StressWrapper_TestRecursiveLocking_36M.java line 56:
>>
>>> 54:
>>> 55: /*
>>> 56: * @test id=Xint_alternate_AB
>>
>> I have a question to Misha (@ can't find name) to ask if these are in different files, will the tests run in parallel? Or does the separate @ test's do that.
>
> AFAIK the files should not matter in this case, the @test matters. Got same info from the quality team.
Each comment block that begins with an `@test` will execute each `@run` in
the comment block serially.
Each separate `@test` block will run in parallel if JOBS is > 1 and there are
resources available for parallel testing. There are a total of 6 separate `@test`
comment blocks so it's possible that there will be 6 parallel executions.
Each of the 6 separate `@test` comment blocks contains 3 `@run` commands
so each of the 6 `@test` comment blocks will serially execute the 3 `@run`
commands in their own comment block.
If you put all of the `@test` directives in a single comment block, then all of the
`@run` commands will execute serially. However, in this case, it won't work right
because each of the 6 `@test` comment blocks contains various `@requires`
directives that would conflict with each other if they were all in the same comment
block.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18664#discussion_r1571427299
More information about the hotspot-runtime-dev
mailing list