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

Leonid Mesnik lmesnik at openjdk.org
Sat Aug 9 20:36:51 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.

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

Commit messages:
 - 8365192: post_meth_exit should be in vm state when calling get_jvmti_thread_state

Changes: https://git.openjdk.org/jdk/pull/26713/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26713&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365192
  Stats: 7 lines in 1 file changed: 5 ins; 1 del; 1 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 hotspot-dev mailing list