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

Alan Bateman alanb at openjdk.org
Wed Nov 23 10:33:22 UTC 2022


On Wed, 23 Nov 2022 10:16:44 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> 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).

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

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


More information about the hotspot-dev mailing list