Integrated: 8322818: Thread::getStackTrace can fail with InternalError if virtual thread is timed-parked when pinned
Alan Bateman
alanb at openjdk.org
Thu Jan 4 06:02:33 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.
This pull request has now been integrated.
Changeset: 4db7a1c3
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4db7a1c3bb6b56cc7416aa27350406da27fe04a8
Stats: 78 lines in 2 files changed: 75 ins; 0 del; 3 mod
8322818: Thread::getStackTrace can fail with InternalError if virtual thread is timed-parked when pinned
Reviewed-by: pchilanomate
-------------
PR: https://git.openjdk.org/jdk/pull/17217
More information about the core-libs-dev
mailing list