RFR: 8365147: AArch64: Replace DMB + LD + DMB with LDAR for C1 volatile field loads

Andrew Haley aph at openjdk.org
Wed Aug 13 12:32:17 UTC 2025


On Wed, 13 Aug 2025 12:20:14 GMT, Samuel Chee <duke at openjdk.org> wrote:

> Just to double check, `load_store_volatile` does not seem to exist, would I have to implement this?


+  void load_store_volatile(Register data, BasicType type, Register addr,
+                          bool is_load) {
+    load_store_exclusive(dummy_reg, data, dummy_reg, addr,
+                         (Assembler::operand_size)exact_log2(type2aelembytes(type)),
+                         is_load ? 0b110: 0b100, 1);
+  }
+

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

PR Comment: https://git.openjdk.org/jdk/pull/26748#issuecomment-3183712818


More information about the hotspot-dev mailing list