RFR: 8365192: post_meth_exit should be in vm state when calling get_jvmti_thread_state [v4]

Serguei Spitsyn sspitsyn at openjdk.org
Wed Aug 13 21:23:11 UTC 2025


On Wed, 13 Aug 2025 15:08:55 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The method
>> get_jvmti_thread_state()
>> should be called only while thread is in vm state.
>> 
>> The post_method_exit is doing some preparation before switching to vm state. This cause issues if thread is needed to initialize jvmti thread state.
>> 
>> The fix was found using jvmti stress agent and thus no additional regression test is required.
>
> Leonid Mesnik has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - added _
>  - wong phase

Marked as reviewed by sspitsyn (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26713#pullrequestreview-3117745050


More information about the serviceability-dev mailing list