Skip to content

[Concurrency] Don't add new task locals copy runtime func #74089

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 Jun 3, 2024

Review follow up to #73978

We don't need a new runtime entry point to implement this optimization (the swift_task_localsCopyToTaskGroupChildTaskDefensively never shipped anywhere, so removing it right away like this); and a few other cleanups and added a TODO for optimization chances.

@ktoso ktoso requested a review from a team as a code owner June 3, 2024 04:55
@ktoso
Copy link
Contributor Author

ktoso commented Jun 3, 2024

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 3, 2024

@swift-ci please smoke test Linux

@@ -284,9 +284,6 @@ Added: _$ss26withTaskExecutorPreference_9isolation9operationxSch_pSg_ScA_pSgYixy
// async function pointer to Swift.withTaskExecutorPreference<A, B where B: Swift.Error>(_: Swift.TaskExecutor?, isolation: isolated Swift.Actor?, operation: () async throws(B) -> A) async throws(B) -> A
Added: _$ss26withTaskExecutorPreference_9isolation9operationxSch_pSg_ScA_pSgYixyYaq_YKXEtYaq_YKs5ErrorR_r0_lFTu

// === Task groups can now handle (copy) task locals set directly around an addTask
Added: _swift_task_localsCopyToTaskGroupChildTaskDefensively
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(This never shipped anywhere, was just introduced a few commits ago)

@ktoso ktoso merged commit 228e425 into swiftlang:main Jun 3, 2024
3 checks passed
@ktoso ktoso deleted the wip-tasklocal-copy-dont-add-runtime-method branch June 3, 2024 22:02
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.

1 participant