VarHandles & LMAX Disruptor

John Rose john.r.rose at oracle.com
Tue Aug 18 21:59:52 UTC 2015


On Aug 18, 2015, at 2:48 PM, Michael Barker <mikeb01 at gmail.com> wrote:
> 
> On 18.08.2015 20:32, John Rose wrote:
> > OK, I'm catching up.  To apply the @Contended hack to a range-checked
> > structure, I guess we want a @Contended 'length' field, that is stored
> > deep past the header of the object.
> 
> Also a gentle reminder that @Contended is not useful for libraries outside of the JDK, due it being defaulted off.  So for it to be part of a viable alternative to Unsafe, you would need to cost in the work needed to flip the default (security auditing required if I remember correctly).

Yes; I'm assuming some sort of built-in array-like type, living in a place like java.util.concurrent.  — John



More information about the valhalla-dev mailing list