RFR: 8311040: JFR: RecordedThread::getOSThreadId() should return -1 if thread is virtual

Markus Grönlund mgronlun at openjdk.org
Tue Jul 18 11:31:28 UTC 2023


Greetings,

The following fix takes care of returning the correct thread values specified by the API. If the thread is virtual, we return null and -1 for the OSThread name and id, respectively.

Thanks
Markus

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

Commit messages:
 - 8311040

Changes: https://git.openjdk.org/jdk/pull/14920/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14920&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8311040
  Stats: 65 lines in 6 files changed: 23 ins; 9 del; 33 mod
  Patch: https://git.openjdk.org/jdk/pull/14920.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14920/head:pull/14920

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


More information about the hotspot-jfr-dev mailing list