RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v12]
Alex Menkov
amenkov at openjdk.org
Sat Oct 26 00:46:06 UTC 2024
On Fri, 25 Oct 2024 20:52:29 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> This fixes a problem in the VTMS (Virtual Thread Mount State) transition frames hiding mechanism.
>> Please, see a fix description in the first comment.
>>
>> Testing:
>> - Verified with new test `vthread/CheckHiddenFrames`
>> - Mach5 tiers 1-6 are passed
>
> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>
> review: introduce new annotation @JvmtiHideEvents and use it in VirtualThread/Continuation classes to disallow FramePop requests
src/java.base/share/classes/jdk/internal/vm/annotation/JvmtiHideEvents.java line 2:
> 1: /*
> 2: * Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
(c) 2024
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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21397#discussion_r1817470128
PR Review Comment: https://git.openjdk.org/jdk/pull/21397#discussion_r1817469168
More information about the serviceability-dev
mailing list