benchmark unaligned memory access
YC Huang
ychuang_cn at hotmail.com
Fri Mar 6 11:03:36 UTC 2015
Aleksey,
Great! That's just what I want...Thank you very much.
-YC
----------------------------------------
> Date: Fri, 6 Mar 2015 09:52:25 +0300
> From: aleksey.shipilev at oracle.com
> To: ychuang_cn at hotmail.com; nitsanw at yahoo.com; jmh-dev at openjdk.java.net
> Subject: Re: benchmark unaligned memory access
>
> 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