On Thu, 30 Jun 2022 15:06:41 GMT, Chris Plummer <cjplum...@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

Reply via email to