Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 24, 2024

This fixes a concurrency issue in SyntaxArena.

Building _AtomicBool using CMake is more tricky because the CMake infrastructure in swift-syntax doesn’t know how to build C modules. Since the compiler is only single-threaded race conditions are impossible, so we fake AtomicBool for now in CMake builds.

rdar://121324116

@ahoppen ahoppen requested a review from rintaro January 24, 2024 06:35
@ahoppen ahoppen requested a review from bnbarham as a code owner January 24, 2024 06:35
@ahoppen
Copy link
Member Author

ahoppen commented Jan 24, 2024

@swift-ci Please test

…iftPM

This fixes a concurrency issue in SyntaxArena.

Building `_AtomicBool` using CMake is more tricky because the CMake infrastructure in swift-syntax doesn’t know how to build C modules. Since the compiler is only single-threaded race conditions are impossible, so we fake `AtomicBool` for now in CMake builds.

rdar://121324116
@ahoppen ahoppen force-pushed the ahoppen/has-parent-atomic branch from ad2412d to 232c4b8 Compare January 31, 2024 01:01
@ahoppen
Copy link
Member Author

ahoppen commented Jan 31, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 31, 2024

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Jan 31, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 1f2810b into swiftlang:main Feb 1, 2024
@ahoppen ahoppen deleted the ahoppen/has-parent-atomic branch August 4, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants