On Mar 12, 2015, at 11:37 AM, Andrew Haley wrote:
>
> On 03/12/2015 05:15 PM, Peter Levart wrote:
>> ...or are JIT+CPU smart enough and there would be no difference?
>
> C2 always orders things based on profile counts, so there is no
> difference. Your suggestion would be better for interpreted
On Mar 12, 2015, at 2:05 PM, Andrew Haley 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)
Andrew,
Experimental options are supposed to be opt-in only via
UnlockExperimentalVMOptions. You presently have the experimental
UseUnalignedAccesses being turned on unconditionally on those
architectures that support it.
David
On 14/03/2015 4:47 AM, Andrew Haley wrote:
I've tried to addre