[jmm-dev] @Contended

Martin Buchholz martinrb at google.com
Wed Apr 27 16:41:31 UTC 2016

On Wed, Apr 27, 2016 at 6:07 AM, Andrew Haley <aph at redhat.com> wrote:
> I'm sure that's true, but everybody hates false sharing because it's
> so unpredictable in a garbage-collected language.  Even if it's never
> happened to them.

Hmmm... with C, if you're willing to work, you do get memalign and can
lay out objects in cache lines.

OTOH, with GC you might get false sharing with card marks, even after padding.

More information about the jmm-dev mailing list