On Thu, 18 May 2023 20:46:20 GMT, Leonid Mesnik <[email protected]> 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

Reply via email to