RFR: 8361103: java_lang_Thread::async_get_stack_trace does not properly protect JavaThread

Alex Menkov amenkov at openjdk.org
Thu Jul 3 19:58:52 UTC 2025


The fix updates `java_lang_Thread::async_get_stack_trace()` (used by `java.lang.Thread.getStackTrace()` to get stack trace for platform and mounted virtual threads) to correctly use `ThreadListHandle` for thread protection.

Testing: tier1..5

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

Commit messages:
 - Merge branch 'master' into tlh_stack_trace
 - fix

Changes: https://git.openjdk.org/jdk/pull/26119/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26119&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361103
  Stats: 17 lines in 3 files changed: 4 ins; 2 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/26119.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26119/head:pull/26119

PR: https://git.openjdk.org/jdk/pull/26119


More information about the hotspot-dev mailing list