Closed ahoppen closed 3 months ago
@swift-ci Please test
SWIFT_SYNTAX_BUILD_USING_CMAKE
mode still uses the dummy AtomicBool
above. and SwiftSyntax
doesn't have the dependency to _SwiftSyntaxCShims
in CMake
@swift-ci Please test
@swift-ci Please test Windows
@swift-ci Please test
@swift-ci Please test Windows
We used C atomics but these were allocated as Swift variables. Even thought they were atomic, concurrent accesses to them could violate Swift’s exclusivity laws, raising thread sanitizer errors.
Allocate the C atomic using malloc to fix this problem.
rdar://129170128