4 ms·
X86 has a strong memory model, so tearing isn’t an issue for 64-bit or smaller quantities. Other architectures (ARM) are different. AIUi
by mastax 2y ago
X86 has a strong memory model, so tearing isn’t an issue for 64-bit or smaller quantities. Other architectures (ARM) are different.
AIUi
- vardump 2y agoA bit late reply. Memory model strength has nothing to do with tearing. Total store order and total load order does not matter in any possible way. There's no tearing, because all memory operations are wider than 64-bits. Unless someone purposefully performs two 32-bit operations on a single 64-bit value.