Skip to content

[6.0][Concurrency] Fix too eager early return in checkIsolation mode detecting #73496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented May 7, 2024

Description: If we have the ability to check env variables, and there was no env variable set we aggressively bailed out of the function's logic, without setting the executor mode at all. This prevented the dynamic modes from working in real (non testing) scenarios.

Scope/Impact: Existing projects, compiled against old SDK would still trigger the new runtime check without this fix. This can break existing applications when user upgrades to new OS, and the application wasn't re-built/tested using the new stricter behavior.
Risk: Low, small change in handling null value
Testing: CI testing
Reviewed by: @mikeash

Original PR: #73495
Radar: rdar://127400013

@ktoso ktoso requested a review from a team as a code owner May 7, 2024 22:20
@ktoso ktoso changed the title [Concurrency] Fix too eager early return in checkIsolation mode detecting [6.0][Concurrency] Fix too eager early return in checkIsolation mode detecting May 7, 2024
@ktoso ktoso requested review from mikeash, DougGregor and hborla May 7, 2024 22:20
@ktoso
Copy link
Contributor Author

ktoso commented May 7, 2024

@swift-ci please test

…ting

If we have the ability to check env variables, and there was no env
variable set we aggressively bailed out of the function's logic, without
setting the executor mode at all. This prevented the dynamic modes from
working in real (non testing) scenarios.

Resolves rdar://127400013
@ktoso ktoso force-pushed the pick-wip-fix-checkIsCurrentExecutorMode branch from 99064c3 to f650dc0 Compare May 8, 2024 05:22
@ktoso
Copy link
Contributor Author

ktoso commented May 8, 2024

@swift-ci please test

@ktoso ktoso enabled auto-merge May 8, 2024 10:12
@ktoso ktoso merged commit 268bb34 into swiftlang:release/6.0 May 8, 2024
5 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.

2 participants