Skip to content

Migrate test-case atomic usages to ThreadSafeBox / Atomic#2665

Merged
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:atomics-test-migration
May 26, 2026
Merged

Migrate test-case atomic usages to ThreadSafeBox / Atomic#2665
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:atomics-test-migration

Conversation

@rintaro
Copy link
Copy Markdown
Member

@rintaro rintaro commented May 22, 2026

Migrate remaining AtomicBool / AtomicUInt32 usages in test cases to ThreadSafeBox / Atomic.

  • Closure-captured AtomicBool flags become ThreadSafeBox<Bool> for now.
    We will revisit this when eliminating ThreadSafeBox.
  • One AtomicUInt32 counter (SourceKitDRegistryTests.swift's nextToken) to Atomic<UInt32>.

Migrate remaining AtomicBool / AtomicUInt32 usages in test cases to
ThreadSafeBox / Atomic.

- Closure-captured `AtomicBool` flags become `ThreadSafeBox<Bool>` for
  now. We will revisit this when eliminating ThreadSafeBox.
- One `AtomicUInt32` counter (SourceKitDRegistryTests.swift's
  `nextToken`) to `Atomic<UInt32>`.
@rintaro
Copy link
Copy Markdown
Member Author

rintaro commented May 22, 2026

swiftlang/swift-tools-protocols#51
@swift-ci Please test

@rintaro rintaro merged commit 8e8a6ce into swiftlang:main May 26, 2026
3 checks passed
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.

3 participants