RFR(S): 8150921: Update Unsafe getters/setters to use double-register variants

Paul Sandoz paul.sandoz at oracle.com
Tue May 3 21:37:48 UTC 2016

> On 3 May 2016, at 14:03, John Rose <john.r.rose at oracle.com> wrote:
>>> Another question to pile on: why only LongVolatile is treated specially,
>>> but not DoubleVolatile too? Atomicity requirements are the same for both
>>> long and double.
>> Very good question. I don't have the answer, but maybe somebody else knows.
> Probably nobody was using the double version, so we didn't bother to put it in.

The single register variant U.get/putDouble is used by a native aligned DoubleBuffer view over a ByteBuffer. But who was using those? :-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160503/eaff0c47/signature.asc>

More information about the hotspot-compiler-dev mailing list