On Thu, 8 Sep 2022 08:34:59 GMT, Adam Sotona <asot...@openjdk.org> wrote:
> According to javadoc VarHandle of static field "effectively ignore the > volatile declaration". > Volatility of REPL.$Cancel.allStop field is critical for this use case. VarHandles defines xxxVolatile so it would be feasible but I don't see a strong need to change it as the reflective op is only done at the start to reset "stop" and when control-C/stop is done. ------------- PR: https://git.openjdk.org/jdk/pull/10166