RFR: 8334215: serviceability/dcmd/thread/PrintMountedVirtualThread.java failing with JTREG_TEST_THREAD_FACTORY=Virtual [v4]
Alan Bateman
alanb at openjdk.org
Wed Jun 19 07:04:12 UTC 2024
On Wed, 19 Jun 2024 06:18:12 GMT, David Holmes <dholmes at openjdk.org> wrote:
> FWIW I would have kept the vt name just in case it does have one. But as Alan said that can be added in later if desired.
I suggested we drop this for now because the thread dump can happen at times when there isn't a reference to the virtual Thread, so can't get the thread name, at least not easily. Definitely something to come back to. The changes in the loom repo means we at least have the thread ID of the mounted virtual thread at all times so this means we can fix the "Carrying .." line and also adjust the changes in this PR to remove the check for the self reference, meaning the "Mounted ..." line and the stack trace won't skipped when the thread dump is taken during a transition.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19744#issuecomment-2177900370
More information about the serviceability-dev
mailing list