Unsafe: efficiently comparing two byte arrays

Ulf Zibis Ulf.Zibis at CoSoCo.de
Sun Mar 2 02:54:52 UTC 2014

Am 28.02.2014 23:29, schrieb Martin Buchholz:
> Are word-size reads in ByteBuffer actually intrinsified?  I could find no
> evidence for that.  Perhaps this is an important missing optimization for
> hotspot to make?
> I see DirectByteBuffer, but not garden-variety ByteBuffer, using Unsafe.
> share/classes/java/nio/Direct-X-Buffer.java.template
> Probably should be investigated using disassembly of jitted code, which I
> have never done.

See also:


More information about the core-libs-dev mailing list