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

Leonid Mesnik lmesnik at openjdk.org
Tue Aug 12 05:54:19 UTC 2025


On Sat, 9 Aug 2025 20:30:14 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.

I ran tier1-5 testing and separately verified that test pass with jvmti strass agent.

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

PR Comment: https://git.openjdk.org/jdk/pull/26713#issuecomment-3177804637


More information about the hotspot-dev mailing list