RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v12]

Serguei Spitsyn sspitsyn at openjdk.org
Sat Oct 26 06:16:06 UTC 2024


On Sat, 26 Oct 2024 05:13:08 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/share/classes/jdk/internal/vm/annotation/JvmtiMountTransition.java line 38:
>> 
>>> 36:  *
>>> 37:  * @implNote
>>> 38:  * This annotation is only used for the VirtualThread notifyJvmti*  methods.
>> 
>> What about VirtualThread.switchToCarrierThread and VirtualThread.switchToVirtualThread ? They also have the annotation.
>
> We working to remove these two methods. I think the main thing for JvmtiMountTransition is that the interface description provides enough information to know when the annotation is needed.

Good catch, thanks. These two methods are impacted by temporary VTMS transitions.
I've restored as it was before.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21397#discussion_r1817696831


More information about the core-libs-dev mailing list