On Thu, 2 Jul 2026 15:56:13 GMT, Gui Cao <[email protected]> wrote:

> Hi, Maybe the cause of this issue is that these Java calls generate a 
> C2AccessFence, which creates MemBarRelease and MemBarAcquire operations 
> before and after CompareAndExchangeX. However, the C2’s 
> `unnecessary_membar_acquire` and `unnecessary_membar_release` are 
> unconditionally removed by calling `is_CAS(load_store->Opcode(), true);` , 
> which unconditionally removes the preceding and following MEMBAR operations. 
> This works fine when UseLSE is enabled, but when UseLSE is disabled, the 
> program experiences a pseudo-deadlock.

Sorry, I didn't quite follow the detailed discussion here just now. If we just 
make some changes, will that completely fix issues like this?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/31465#issuecomment-4867989906

Reply via email to