VarHandles & LMAX Disruptor

John Rose john.r.rose at
Tue Aug 4 19:20:28 UTC 2015

On Jul 28, 2015, at 3:01 PM, Vitaly Davidovich <vitalyd at> wrote:
> Is that in scope though given that VarHandles are really meant to replace
> Unsafe usage, and I don't see how Unsafe supports that "naked"/default
> aspect today.

To be fair, Unsafe doesn't support any form of access that is user-friendly.

VHs add lots of usability stuff that goes beyond Unsafe, but along a new vector.

A "natural" access mode (respecting underlying variable declaration) is useful
not because it cannot be expressed differently, but because it is safer to use.
Safer because less surprising and easier to reason about.

— John

More information about the valhalla-dev mailing list