Request for reviews (S): 7190310: Inlining WeakReference.get(), and hoisting $referent may lead to non-terminating loops
David Holmes
david.holmes at oracle.com
Thu Aug 9 18:52:54 PDT 2012
On 10/08/2012 11:34 AM, Vladimir Kozlov wrote:
> http://cr.openjdk.java.net/~kvn/7190310/webrev
>
> 7190310: Inlining WeakReference.get(), and hoisting $referent may lead
> to non-terminating loops
>
> Add acquire membar after load from Reference.referent field to prevent
> commoning of loads across safepoint since GC can change its value.
Wow that was quick! :)
My only comment (not being a compiler expert) is that it would appear
that we are now inserting read barriers with all GC's not just G1. What
kind of impact will that have on performance under the other GC's?
Thanks,
David
> Thanks,
> Vladimir
More information about the hotspot-compiler-dev
mailing list