Are reads and writes to unaligned fields in .NET definitely atomic?
问题 The C# specification (ECMA-334 and ISO/IEC 23270) has a paragraph about the atomicity of reads and writes: 12.5 Atomicity of variable references Reads and writes of the following data types shall be atomic: bool, char, byte, sbyte, short, ushort, uint, int, float, and reference types. In addition, reads and writes of enum types with an underlying type in the previous list shall also be atomic. Reads and writes of other types, including long, ulong, double, and decimal, as well as user-defined