RFR: 8316233: VirtualThreadStart events should not be thread-filtered [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Mon Oct 9 23:56:58 UTC 2023


On Sat, 7 Oct 2023 06:31:08 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/hotspot/share/prims/jvmti.xml line 13044:
>> 
>>> 13042: 
>>> 13043:  <event label="Virtual Thread Start"
>>> 13044:          id="VirtualThreadStart" const="JVMTI_EVENT_VIRTUAL_THREAD_START" num="87" phase="start" since="21">
>> 
>> Does "filtered" mean that the event can be enabled or disabled on a per thread basis, and therefore by removing this it means the event can only be enabled or disabled globally?
>
> That's right. The spec for SetEventNotificationMode lists the events that cannot be enabled/disabled at the thread level. Both ThreadStart and VirtualThreadStart are listed so I view this JBS/PR issue as fixing the implementation.

Thank you for explaining, Alan. There is nothing to add.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16019#discussion_r1351005124


More information about the serviceability-dev mailing list