[concurrency-interest] padding in Exchanger

Doug Lea dl at cs.oswego.edu
Tue Jan 17 07:40:04 EST 2012

On 01/17/12 07:28, Ruslan Cheremin wrote:

> . From my point of view one side padding is not
> bulletproof anyway...

Yes. As a practical matter though, until an @Contended attribute
or something like it is supported across JVMS (see list archives for
discussion), you cannot arrange reliable two-sided padding
for objects with mixed field types (ints, longs, refs that may be
either 32 or 64 bits, etc), so one-sided is the best you can do.


More information about the Concurrency-interest mailing list