RFR: 8376568: Change Thread::getStackTrace to use handshake op for all cases [v3]
David Holmes
dholmes at openjdk.org
Tue Feb 3 11:07:51 UTC 2026
On Tue, 3 Feb 2026 08:28:41 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> There is no need for ThreadDumper to do any additional filtering. The thread streams that it consumes filter out Threads that are not alive.
Okay that is not at all obvious. But in that case you are never passing a NEW thread to `ThreadSnapshot.of()`. But if that is to be the primary API for getting stacktraces then having it filter on isAlive is reasonable.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29461#discussion_r2758520184
More information about the hotspot-dev
mailing list