Unsafe.{get,put}-X-Unaligned performance

Vitaly Davidovich vitalyd at gmail.com
Thu Mar 12 22:02:43 UTC 2015


Is vectorization coming soon? AFAIK, only memory copies are vectorized
currently but not any arithmetic or the like.

sent from my phone
On Mar 12, 2015 5:06 PM, "Andrew Haley" <aph at redhat.com> wrote:

> On 03/12/2015 07:29 PM, Peter Levart wrote:
> > What about the following variant (or similar with ifs in case switch is
> > sub-optimal):
> >
> >      public final long getLongUnaligned(Object o, long offset) {
> >          switch ((int) offset & 7)
> ...
>
> I tried that already, and it wasn't really any faster, and it won't
> vectorize nicely (vectorization was high on John's list).
>
> Andrew.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150312/02d118b6/attachment.html>


More information about the hotspot-compiler-dev mailing list