Skip to content
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

Fix an unnecessary thread pool dependency when waiting JTF collection. #900

Merged
merged 1 commit into from Aug 28, 2021

Conversation

lifengl
Copy link
Member

@lifengl lifengl commented Aug 27, 2021

It leads slowdown during solution closing time.

On my local testing trace during closing Roslyn, this can lead 0.5s delay during solution closing time inside:
image

All tracking tasks are UI thread background tasks. This extra delay is caused by the code requires an extra thread pool dependency, which hits the problem due to thread pools are busy serialize DTBB caches (and a few other clean-up tasks), this block waiting would run to scheduling problems.

@davkean to aware of this change.

It leads slowdown during solution closing time.
@AArnott AArnott added this to the v17.0 milestone Aug 28, 2021
@AArnott AArnott merged commit 29cc43c into main Aug 28, 2021
@AArnott AArnott deleted the dev/lifengl/fixUnnecessaryThreadPoolDep branch August 28, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants