Primitive objects vs memory model

Raffaello Giulietti raffaello.giulietti at gmail.com
Mon Aug 2 14:55:50 UTC 2021


Hello,

I'm wondering if the relationship between primitive objects and the 
memory model (JLS 17 and j.l.i.VarHandle) has been discussed before. I 
couldn't find aything in JEP 401, nor is the mailing list archive, 
spanning more than 5 years of intense discussions, easily searchable for 
keywords.

For example, does plain access mode guarantee bitwise atomicity (aka 
access atomicity) on JEP 401 Point instances (2 double fields for the 
coords), as if they were 32 bit values? Or perhaps only opaque mode can 
make such guarantees?


Greetings
Raffaello


More information about the valhalla-spec-comments mailing list