benchmark unaligned memory access

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Mar 6 06:52:25 UTC 2015


On 03/06/2015 05:18 AM, YC Huang wrote:
> I change the method to void Instead of return something, and assign
> the value to a class field,which seems could eliminate the implicit
> Blackhole.consume() and still avoid DCE...

This is how you do it:
  http://cr.openjdk.java.net/~shade/scratch/Misaligned.java

-Aleksey.




More information about the jmh-dev mailing list