Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix hang in AsyncLazy<T>.DisposeValueAsync - #1340

#1340
Merged
AArnott merged 1 commit into
microsoft:mainmicrosoft/vs-threading:mainfrom
AArnott:libtemplateUpdateAArnott/vs-threading:libtemplateUpdateCopy head branch name to clipboard
Jul 19, 2024
Merged

Fix hang in AsyncLazy<T>.DisposeValueAsync#1340
AArnott merged 1 commit into
microsoft:mainmicrosoft/vs-threading:mainfrom
AArnott:libtemplateUpdateAArnott/vs-threading:libtemplateUpdateCopy head branch name to clipboard

Conversation

@AArnott

@AArnott AArnott commented Jul 19, 2024

Copy link
Copy Markdown
Member

This method was failing to create a JoinableTask dependency link such that a value factory that was already in progress and required the main thread would be able to get it from the DisposeValueAsync caller.

Fixes devdiv-2169193
For the record, this fixes a bug that existed since the introduction of this method in 17.8. So while this PR fixes 17.12, I based the fixing commit in the 17.8 version so we can merge the fix into any older release if necessary.

This method was failing to create a JoinableTask dependency link such that a value factory that was already in progress and required the main thread would be able to get it from the `DisposeValueAsync` caller.
@AArnott AArnott added this to the v17.12 milestone Jul 19, 2024
@AArnott
AArnott requested review from BertanAygun and lifengl July 19, 2024 21:14

@lifengl lifengl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good to me

@AArnott
AArnott merged commit 98acf4e into microsoft:main Jul 19, 2024
@AArnott
AArnott deleted the libtemplateUpdate branch July 19, 2024 21:37
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.