[jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

Alan Bateman alanb at openjdk.org
Thu Jun 30 15:49:41 UTC 2022


On Thu, 30 Jun 2022 15:06:41 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> I'm just pointing out that initialising breakpointReached to false is unnecessary as it's the default value.
>
> but do either of these fields need to be volatile?

I think both need to be volatile. The writer is in threadDied and breakpointReached callbacks executed on the EventHandler thread, and read by the test main thread.

-------------

PR: https://git.openjdk.org/jdk19/pull/88


More information about the serviceability-dev mailing list