VarHandles & LMAX Disruptor

Michael Barker mikeb01 at gmail.com
Tue Aug 18 21:48:06 UTC 2015


>
> 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).

Mike.


More information about the valhalla-dev mailing list