loop invariant code motion and the jit
Andrew Haley
aph at redhat.com
Thu Jan 19 15:06:45 UTC 2017
On 19/01/17 14:21, Stuart Monteith wrote:
> Andrew - Do you mean a java.lang.ref.Reference or something like an
> java.util.concurrent.atomic.AtomicBoolean or AtomicReference?
At the present time, any kind of Reference will work in HotSpot.
For spec-correctness you'd want an AtomicSomething.
> Peter - it has sometimes been the case that "stop" will work in your
> example with "-client" but not "-server" because of the better
> optimisation in C2.
Indeed.
Andrew.
More information about the hotspot-compiler-dev
mailing list