RFR: 8298853: JvmtiVTMSTransitionDisabler should support disabling one virtual thread transitions [v2]
Serguei Spitsyn
sspitsyn at openjdk.org
Tue Dec 20 10:20:49 UTC 2022
On Tue, 20 Dec 2022 04:37:32 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> The JvmtiVTMSTransitionDisabler has to be a no-op for a non-virtual thread. It is to avoid different branches where it is possible for virtual and non-virtual cases and use this in `jvmtiEnv.cpp`:
>> ` JvmtiVTMSTransitionDisabler disabler(thread);`
>> I've added comments that mark no-op cases.
>
> I see. I assumed the name `_vthread` implied it was actually known to be a vthread. Really the field and parameters should just be called `thread`.
Okay, renamed now.
-------------
PR: https://git.openjdk.org/jdk/pull/11690
More information about the hotspot-dev
mailing list