JEP 171: Fence Intrinsics
David Chase
david.r.chase at oracle.com
Mon Dec 3 09:45:54 PST 2012
Is this the right place to comment on this?
I think these should not go in Unsafe; fence intrinsics belong with compareAndSet in j.u.concurrent.atomic.
My reasoning is that there are some lock- or obstruction-free algorithms that do require CAS and (in some cases) fences, but do not require anything that is actually unsafe, and do not require the security clearance that goes with being allowed access to Unsafe.
On 2012-12-03, at 12:31 PM, mark.reinhold at oracle.com wrote:
> Posted: http://openjdk.java.net/jeps/171
>
> - Mark
More information about the hotspot-dev
mailing list