Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Oct 8, 2025

This PR adopts Mutex on all platforms except Darwin (where we still need to back-deploy further than Mutex is available.)

Blocked by swiftlang/swift#84771.
Reapplies #1351.
Resolves #538.
Resolves rdar://131832797.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR adopts `Mutex` on all platforms except Darwin (where we still
need to back-deploy further than `Mutex` is available.)

Resolves #538.

### Checklist:

- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
@grynspan grynspan added this to the Swift 6.x (main) milestone Oct 8, 2025
@grynspan grynspan self-assigned this Oct 8, 2025
@grynspan grynspan added enhancement New feature or request concurrency 🔀 Swift concurrency/sendability issues performance 🏎️ Performance issues tech-debt 💾 reduces technical debt labels Oct 8, 2025
@grynspan grynspan marked this pull request as ready for review October 11, 2025 19:42
Copy link
Contributor

@stmontgomery stmontgomery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming nothing meaningful has changed since the original PR

@grynspan
Copy link
Contributor Author

Should be identical.

@grynspan
Copy link
Contributor Author

Note to self: BSD commit?

@jerryjrchen
Copy link
Contributor

I can't see the CI results in #1353 (https://ci.swift.org/job/oss-swift-pr-test-ubuntu-22_04/9662/). Was the reason this was backed out because of a compilation failure due to swiftlang/swift#84771?

@grynspan
Copy link
Contributor Author

That PR fixes the issue we ran into which our own CI jobs won't catch. See that issue for more info.

@grynspan
Copy link
Contributor Author

The bug fixed in swiftlang/swift#84771 may still be present in the 6.2.x toolchain, but we don't expect to build this repo's main branch in release mode there, so I'm going to merge the change now. If we find this causes problems with the 6.2 toolchain, we can always revert again.

@grynspan grynspan changed the title Adopt Mutex. Adopt Mutex (take 2) Oct 14, 2025
@grynspan grynspan merged commit 90e08ac into main Oct 14, 2025
24 checks passed
@grynspan grynspan deleted the jgrynspan/reapply-1351 branch October 14, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

concurrency 🔀 Swift concurrency/sendability issues enhancement New feature or request performance 🏎️ Performance issues tech-debt 💾 reduces technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt Mutex

3 participants