Skip to content

Atomics 0.0.2

Compare
Choose a tag to compare
@lorentey lorentey released this 15 Oct 20:49
· 182 commits to main since this release
26e346c

Changes

  • On Linux only, support for double-wide atomics is unavailable by default on x86_64 CPUs. To enable double-wide atomic functionality, you have to manually switch on support for the cmpxchg16b instruction:

    $ swift build -Xcc -mcx16 -Xswiftc -DENABLE_DOUBLEWIDE_ATOMICS -c release
    

    Code containing cmpxchg16b will run on all but the earliest AMD x86_64 CPUs. (You can verify your target CPU supports it by checking that the cx16 flag is present in /proc/cpuinfo.)

  • The Swift Atomics test suite now requires --enable-test-discovery on non-Apple platforms.