RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Wed Nov 23 19:40:27 UTC 2022


On Wed, 23 Nov 2022 10:31:00 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Fixed the `yieldContinuation()` method.
>> There is also `switchToCarrierThread()` method that returns the `notifyJvmtiEvents` value.
>> It seems to be an optimization. I'm not sure yet, if we need to fix these places as well.
>
>> There is also `switchToCarrierThread()` method that returns the `notifyJvmtiEvents` value.
>> It seems to be an optimization. I'm not sure yet, if we need to fix these places as well.
> 
> It was to ensure that hide(true) and hide(false) are balanced. If it were to re-poll notifyJvmtiEvents and a JVMTI agent enables the capability while a thread in doing a temporary transition then you may get a hide(false) without the corresponding hide(true).

Okay, I see it now.

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

PR: https://git.openjdk.org/jdk/pull/11304


More information about the hotspot-dev mailing list