Skip to content

[Concurrency][Task Locals] Fix missing flag setting on next pointer #35980

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
merged 1 commit into from
Feb 16, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 15, 2021

Functionally these actually didn't change much as "is terminal" just means we are at the end of the chain, in which case we stop searching anyway (next is null), and isNext is the "normal case that is "not isParent" so the logic didn't do anything special for it.

The flags should be set correctly though at all times.

Thanks for spotting this @yln b811b12#r47156808

@ktoso ktoso requested a review from yln February 15, 2021 22:18
Copy link
Contributor

@yln yln left a comment

Choose a reason for hiding this comment

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

LGTM

@ktoso
Copy link
Contributor Author

ktoso commented Feb 15, 2021

@swift-ci please smoke test and merge

@ktoso
Copy link
Contributor Author

ktoso commented Feb 16, 2021

Unrelated failure

/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-main/swift-tools-support-core/Tests/TSCBasicTests/LockTests.swift:90: error: LockTests.testReadWriteFileLock : XCTAssertEqual threw error "FileSystemError(kind: TSCBasic.FileSystemError.Kind.noEntry, path: Optional(AbsolutePath:"/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-main/tmp/TemporaryDirectory.MH6uLY/fileA"))" -

@swift-ci please smoke test linux

@ktoso ktoso assigned ktoso and unassigned ktoso Feb 16, 2021
@ktoso ktoso merged commit d9036c2 into swiftlang:main Feb 16, 2021
@ktoso ktoso deleted the wip-locals-missing-flag branch February 16, 2021 08:41
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