Skip to content

Conversation

@grynspan
Copy link
Contributor

On all platforms except Linux, calling withLockIfAvailable() recursively just returns nil. However, our Linux implementation chooses to abort the process instead. We don't need this inconsistent/destructive behaviour and can just return nil as we do elsewhere.

On all platforms except Linux, calling `withLockIfAvailable()` recursively just
returns `nil`. However, our Linux implementation chooses to abort the process
instead. We don't need this inconsistent/destructive behaviour and can just
return `nil` as we do elsewhere.
@grynspan grynspan added this to the Swift 6.3 milestone Nov 11, 2025
@grynspan grynspan self-assigned this Nov 11, 2025
@grynspan grynspan requested a review from a team as a code owner November 11, 2025 21:19
@grynspan grynspan added concurrency Feature: umbrella label for concurrency language features Linux Platform: Linux labels Nov 11, 2025
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan enabled auto-merge (squash) November 12, 2025 02:20
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

I don't see why we'd have to crash in the Linux case, letting @Azoy confirm though ah, done already :)

@grynspan grynspan merged commit 276706e into main Nov 12, 2025
4 of 5 checks passed
@grynspan grynspan deleted the jgrynspan/no-abort-on-trylock-failure branch November 12, 2025 07:34
@grynspan
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

concurrency Feature: umbrella label for concurrency language features Linux Platform: Linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants