RFR: 8334215: serviceability/dcmd/thread/PrintMountedVirtualThread.java failing with JTREG_TEST_THREAD_FACTORY=Virtual
Alan Bateman
alanb at openjdk.org
Mon Jun 17 12:58:14 UTC 2024
On Mon, 17 Jun 2024 12:35:15 GMT, David Holmes <dholmes at openjdk.org> wrote:
> We need a comment explaining why we have to check for this as without knowing the implementation quirks it seems non-sensical for a thread to have mounted itself!
Just to note that JavaThread._vthread is always the "current thread". It's the virtual thread when mounted, the carrier (as in itself) when there is no virtual thread mounted. It's one this way so that the C2 instrinic for currentThread doesn't need a branch/test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19744#discussion_r1642772079
More information about the serviceability-dev
mailing list