-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency] Reimplement @TaskLocal as a macro #73078
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
Conversation
@swift-ci please smoke test |
032f6cd
to
dd8d8fa
Compare
auto &ctx = var->getASTContext(); | ||
if (classDecl == ctx.getTaskLocalDecl()) { | ||
return isolation; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workaround was removed
|
||
/// Macro that introduces a ``TaskLocal-class`` binding. | ||
/// | ||
/// - SeeAlso: ``TaskLocal-class`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the way to refer to the same named type
dd8d8fa
to
d9b9139
Compare
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, mostly have small, local comments
b560210
to
9f327d1
Compare
@swift-ci please smoke test |
9f327d1
to
4b515ed
Compare
@swift-ci please smoke test |
@swift-ci please smoke test |
29067ea
to
6c966c9
Compare
6c966c9
to
2ac9f70
Compare
Having a rough time figuring out what mac CI isn't happy about, locally validation test also is happy... Trying again |
@swift-ci please smoke test |
swiftlang/swift-driver#1590 |
swiftlang/sourcekit-lsp#1212 |
swiftlang/swift-driver#1590 |
2 similar comments
swiftlang/swift-driver#1590 |
swiftlang/swift-driver#1590 |
Driver PR was merged, so reenabling automerging this :) Meh, updated branch un-necessarily. Either way, thank you Rintaro! |
swiftlang/swift-driver#1590 |
@swift-ci Please smoke test |
@ktoso this change broke access control for and then a consumer module is accessing its projected value:
After this change this code no longer compiles, as it complains that |
this is breaking our builds that depend on this overlay. |
This reimplements
@TaskLocal
as a peer + accessor macro.This is necessary to avoid sendable warnings about task locals having "mutable state" which property wrappers do introduce for the storage.
Resolves rdar://120914014
TODO: