RFR: 8316654: remove edundant dmb after casal instruction

Stuart Monteith smonteith at openjdk.org
Thu Sep 21 10:55:39 UTC 2023


On Thu, 21 Sep 2023 09:33:59 GMT, Sun Jianye <jianyesun at openjdk.org> wrote:

> Hi,all.
> The `casal` means a CAS operate with both load-acquire and store-release semantics.It looks like the subsequent dmb is redundant. Can we remove it?

I don't think this is correct. The DMB is necessary for when the CASAL fails, the release semantics only applies for that instruction when the write is successful.

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

PR Comment: https://git.openjdk.org/jdk/pull/15856#issuecomment-1729329265


More information about the hotspot-dev mailing list