RFR: 8289613: Drop use of Thread.stop in jshell [v4]
Alan Bateman
alanb at openjdk.org
Thu Sep 8 08:51:53 UTC 2022
On Thu, 8 Sep 2022 08:34:59 GMT, Adam Sotona <asotona at 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
More information about the core-libs-dev
mailing list