RFR: 8365192: post_meth_exit should be in vm state when calling get_jvmti_thread_state
Serguei Spitsyn
sspitsyn at openjdk.org
Tue Aug 12 03:54:12 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.
Thank you for catching and addressing this! How was the fix tested?
It looks okay at a glance but may give surprises.
-------------
PR Review: https://git.openjdk.org/jdk/pull/26713#pullrequestreview-3108454887
More information about the hotspot-dev
mailing list