Blackhole.consume(Object) has different semantics to Blackhole.consume(primitive)
Aleksey Shipilev
aleksey.shipilev at oracle.com
Wed Nov 12 13:34:15 UTC 2014
On 11/12/2014 04:31 PM, Aleksey Shipilev wrote:
> On 11/12/2014 03:49 PM, Aleksey Shipilev wrote:
>> If you are concerned with the absence of volatile reads for reference
>> consumes, we may add the volatile "spoiler" there to get the same
>> effect. That will break the perceived consistency from ARM case -- seems
>> to be the lesser evil.
>
> Filed:
> https://bugs.openjdk.java.net/browse/CODETOOLS-7901095
Would that be a solution you are looking for, Nitsan?
http://cr.openjdk.java.net/~shade/7901095/webrev.01/
-Aleksey.
More information about the jmh-dev
mailing list