RFR (S): JDK-8172434: CompareAndExchangeObject inserts two pre-barriers
vladimir.x.ivanov at oracle.com
Tue Feb 14 14:43:05 UTC 2017
I'll sponsor the fix.
On 2/14/17 12:46 PM, Roman Kennke wrote:
> Hi Vladimir,
> I think I need a sponsor now? Can you do that?
> Am Montag, den 13.02.2017, 16:41 -0800 schrieb Vladimir Kozlov:
>> Looks good.
>> On 2/13/17 1:11 PM, Roman Kennke wrote:
>>> in LibaryCallKit::inline_unsafe_access(), the pre_barrier() gets
>>> inserted twice for LS_cmp_exchange, in one case it is treated like
>>> other CAS instructions, and at the end it is treated like
>>> It's not causing incorrect behaviour, but might impact performance.
>>> The fix is to leave out the 2nd pre-barrier for CAE by checking for
>>> Testing: jcstress
More information about the hotspot-compiler-dev