RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v3]
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Oct 16 21:35:14 UTC 2024
On Wed, 16 Oct 2024 14:38:13 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Thank you for the comment. I can move the try-finally to the method `java/lang/VirtualThread$VThreadContinuation$1.run()` if you prefer. But it will play the same role functionally.
>
> Changing the run method to
>
> vthread.notifyJvmtiStart();
> try {
> vthread.run(task);
> } finally {
> vthread.notifyJvmtiEnd();
> }
>
> is okay. I was initially puzzled because the run method is already`@Hidden` but I don't think this is used by JVMTI.
Thanks. Yes, the annotation `@Hidden` is not used by the JVMTI. It would be tricky to use it consistently.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21397#discussion_r1803823267
More information about the serviceability-dev
mailing list