[concurrency-interest] ConcurrentLinkedQueue padding

Carl Mastrangelo notcarl at google.com
Tue Nov 21 16:33:55 EST 2017

Hi concurrency interest,

I was looking through ConcurrentLinkedQueue and noticed that unlike several
of the other concurrent classes, the volatile Node pointers as well as the
Nodes themselves don't have any padding.  This makes me wonder, could there
be false sharing when using multiple producers to add to the queue?  I was
under the impression that the GC tends to group fields of a class near each
other, which would imply that there is going to likely be contention when
quickly updating (and reading) from it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20171121/5376be23/attachment.html>

More information about the Concurrency-interest mailing list