RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v6]

Alex Menkov amenkov at openjdk.org
Wed Apr 12 01:06:46 UTC 2023


> The fix updates JVMTI FollowReferences implementation to report references from virtual threads:
> - added heap scanning to report unmounted vthreads;
> - stacks of mounted vthreads are splitted into 2 parts (vittual thread stack and carrier thread stack), references are reported with correct thread id/class and object tags/frame depth;
> - common code to handle stack frames are moved into separate class;

Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:

  removed full heap scan. unmounted VT are not considered roots and reported only from references

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13254/files
  - new: https://git.openjdk.org/jdk/pull/13254/files/f7831794..f85e95ba

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13254&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13254&range=04-05

  Stats: 144 lines in 2 files changed: 62 ins; 74 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/13254.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13254/head:pull/13254

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


More information about the serviceability-dev mailing list