RFR: 8365192: post_meth_exit should be in vm state when calling get_jvmti_thread_state [v2]
Leonid Mesnik
lmesnik at openjdk.org
Wed Aug 13 06:26:16 UTC 2025
> 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 one additional commit since the last revision:
simplified after feedback
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26713/files
- new: https://git.openjdk.org/jdk/pull/26713/files/47a32e8c..7cce73e3
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26713&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26713&range=00-01
Stats: 6 lines in 1 file changed: 1 ins; 1 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/26713.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26713/head:pull/26713
PR: https://git.openjdk.org/jdk/pull/26713
More information about the serviceability-dev
mailing list