From raffaello.giulietti at gmail.com Mon Aug 2 14:55:50 2021 From: raffaello.giulietti at gmail.com (Raffaello Giulietti) Date: Mon, 2 Aug 2021 16:55:50 +0200 Subject: Primitive objects vs memory model Message-ID: <6e25759d-1ca8-4f98-06fb-610132eaaf9b@gmail.com> 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