RFR: 8307865: Invalid is_in_any_VTMS_transition() check in post_dynamic_code_generated_while_holding_locks
Chris Plummer
cjplummer at openjdk.org
Thu May 18 21:38:49 UTC 2023
On Thu, 18 May 2023 20:46:20 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
>> test/hotspot/jtreg/serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java line 55:
>>
>>> 53: Runnable task = () -> {
>>> 54: String result = "string" + System.currentTimeMillis();
>>> 55: LockSupport.parkNanos(1);
>>
>> Why is this needed?
>
> It is needed to provoke thread re-mounting to trigger VTMT transitions.
> The test wouldn't fail without it.
I think you should add a comment for that.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13921#discussion_r1198329130
More information about the serviceability-dev
mailing list