[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-serviceability-dev
Subject: Integrated: 8308819: add JDWP and JDI virtual thread support for ThreadReference.ForceEarlyReturn
From: Chris Plummer <cjplummer () openjdk ! org>
Date: 2023-05-31 20:53:20
Message-ID: -zx7w9wUATS3FvGJ99c9kGuRkyuMKHQ6FGXrq6FvC4E=.4d9c1d62-f81e-4fe6-820e-55cca3744b84 () github ! com
[Download RAW message or body]
On Fri, 26 May 2023 03:21:12 GMT, Chris Plummer <cjplummer@openjdk.org> wrote:
> Improve ThreadReference.ForceEarlyReturn to support virtual threads as long as they \
> are suspended and mounted.
> [JDK-8308400](https://bugs.openjdk.org/browse/JDK-8308400) improved JVMTI \
> ForceEarlyReturn support for virtual threads. The spec now says it is supported if \
> the thread is suspended at an event (not a specific event as previously spec'd), \
> and additional support may also be provided. The implementation now just requires \
> that the virtual thread be mounted, so this covers being suspended at an event, but \
> also other situations in which the virtual thread is mounted.
> JDWP and JDI need to line up with JVMTI. Only spec changes will be needed.
>
> A new test was added mostly to cover the unmounted virtual thread case that results \
> in OpaqueFrameException.
> forceEarlyReturn002 test had previously been updated for virtual threads to expect \
> OpaqueFrameException. These changes have all been undone since the test now runs \
> the same when using virtual threads as with platform threads.
This pull request has now been integrated.
Changeset: 5531f6ba
Author: Chris Plummer <cjplummer@openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5531f6ba1b75f922f08501eda4b2a7a849ee49f5
Stats: 351 lines in 9 files changed: 302 ins; 29 del; 20 mod
8308819: add JDWP and JDI virtual thread support for ThreadReference.ForceEarlyReturn
Reviewed-by: sspitsyn, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/14167
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic