Skip to content

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 20, 2021

I think this is might be the solution to both rdar://79528413 as well as https://forums.swift.org/t/swift-5-5-cant-get-task-local-value-in-async/49641

When we copy values to an unstructured task, we must also increase the refcount of it.
I need to check with folks if this is the right way to do it.

This may not be the only issue here, but I'll get back to this on monday to dig deeper.

@ktoso
Copy link
Contributor Author

ktoso commented Jun 20, 2021

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 21, 2021

@swift-ci please smoke test macOS

@ktoso ktoso force-pushed the wip-local-inherit-async-fix branch from b4f5d56 to 608376c Compare June 21, 2021 04:01
@ktoso
Copy link
Contributor Author

ktoso commented Jun 21, 2021

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jun 21, 2021

rdar://79528413

@ktoso
Copy link
Contributor Author

ktoso commented Jun 22, 2021

@swift-ci please smoke test macOS

@ktoso ktoso merged commit 0cf6d9a into swiftlang:main Jun 23, 2021
@ktoso ktoso deleted the wip-local-inherit-async-fix branch June 23, 2021 06:45
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