You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NativeAOT] Use 8.1 atomics, if available, in RhpCheckedXchg/RhpCheckedLockCmpXchg (#85283)
* use atomics when available
* exch win
* conditional atomics
* moving ARM64_ATOMICS_FEATURE_FLAG_BIT to AsmOffsets.h and adding a static assert.
* enable lse locally in the asm helpers
Copy file name to clipboardExpand all lines: src/coreclr/nativeaot/Runtime/IntrinsicConstants.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,11 @@ enum ARM64IntrinsicConstants
50
50
ARM64IntrinsicConstants_Atomics=0x0080,
51
51
ARM64IntrinsicConstants_Rcpc=0x0100,
52
52
};
53
+
54
+
// Bit position for the ARM64IntrinsicConstants_Atomics flags, to be used with tbz / tbnz instructions
55
+
staticconstintARM64_ATOMICS_FEATURE_FLAG_BIT=7;
56
+
static_assert((1 << ARM64_ATOMICS_FEATURE_FLAG_BIT) ==ARM64IntrinsicConstants_Atomics, "ARM64_ATOMICS_FEATURE_FLAG_BIT must match with ARM64IntrinsicConstants_Atomics");
0 commit comments