(S) RFR: 8157904: Atomic::cmpxchg for jbyte is missing a fence on initial failure

David Holmes david.holmes at oracle.com
Mon Aug 22 10:59:17 UTC 2016


On 22/08/2016 6:25 PM, Andrew Haley wrote:
> On 22/08/16 08:54, David Holmes wrote:
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8157904
>>
>> webrev: http://cr.openjdk.java.net/~dholmes/8157904/webrev/
>
> The casting away volatile is confusing and ugly.  Is the problem
> that we don't have volatile cmpxchg() ?  Or that we don't have a
> pointer_delta() which accepts a volatile?

The latter - pointer_delta takes const args.

David

> Andrew.
>
>


More information about the hotspot-runtime-dev mailing list