Skip to content

[TaskGroup] reorder resumeWaiting->run and reenable async_taskgroup_discarding_dontLeak #67787

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

Closed
wants to merge 2 commits into from

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Aug 8, 2023

We had resolved rdar://109998145 via the lock ordering fix in #67700
This is the same kind of test and cause radar to have disabled the test, so re-enable it.

We also have the "bad order" of

    resumeWaitingTask(completedTask, assumed, hadErrorResult);
    unlock(); // bad, unlock first (!)

that we should correct in a separate commit here.

This might be the root cause of rdar://113331923, though I'm working on additional tests to verify

I'd like to use this PR to give this a few runs to verify.

@ktoso ktoso requested a review from kavon as a code owner August 8, 2023 04:40
@ktoso ktoso changed the title TaskGroup Reorder resumeWaiting->run and reenable async_taskgroup_discarding_dontLeak TaskGroup reorder resumeWaiting->run and reenable async_taskgroup_discarding_dontLeak Aug 8, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Aug 8, 2023

@swift-ci please test

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Aug 8, 2023
@ktoso ktoso changed the title TaskGroup reorder resumeWaiting->run and reenable async_taskgroup_discarding_dontLeak [TaskGroup] reorder resumeWaiting->run and reenable async_taskgroup_discarding_dontLeak Aug 8, 2023
@ktoso ktoso marked this pull request as draft August 8, 2023 08:36
@ktoso ktoso closed this Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant