RFR: 8322818: Thread::getStackTrace can fail with InternalError if virtual thread is timed-parked when pinned
Patricio Chilano Mateo
pchilanomate at openjdk.org
Wed Jan 3 17:29:46 UTC 2024
On Tue, 2 Jan 2024 08:55:37 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Missed by JDK-8312498, VirtualThread::tryGetStackTrace doesn't handle the TIMED_PINNED state so it's possible for Thread::getStackTrace to throw InternalError when invoked on a virtual thread that quickly transitions from unmounted to timed-park-while-pinned. This one is needs a stress test to reproduce.
Looks good to me.
-------------
Marked as reviewed by pchilanomate (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/17217#pullrequestreview-1802781750
More information about the core-libs-dev
mailing list