RFR 8149469: ByteBuffer API and implementation enhancements for VarHandles

Paul Sandoz paul.sandoz at oracle.com
Fri Feb 19 13:41:58 UTC 2016

> On 18 Feb 2016, at 16:54, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> I still need to think a little more about the upper bound of unitSize, i put a limit of 64 (cache line size) to stop silly values:
> - implementation-wise, for non-direct buffers any value above 8 should throw a USO.
> - for direct buffers is 64 too small? what about for page size alignment?

I updated the webrev in place to:

1) throw a USO for non-direct buffers with unit sizes > 8, this is documented in an implementation note.

2) removed the upper limit on unit size, so for direct buffers one could choose page size as the unit size

  http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8149469-byte-buffer-align-and-unifying-enhancements/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8149469-byte-buffer-align-and-unifying-enhancements/webrev/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160219/0d97b5c7/attachment.html>
-------------- 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/20160219/0d97b5c7/signature.asc>

More information about the hotspot-compiler-dev mailing list