Skip to content

Call InitializeTelemetrySession on background thread (#58399)#58674

Merged
tmat merged 1 commit intodotnet:release/dev17.1from
tmat:Port
Jan 6, 2022
Merged

Call InitializeTelemetrySession on background thread (#58399)#58674
tmat merged 1 commit intodotnet:release/dev17.1from
tmat:Port

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Jan 6, 2022

Port #58399 from main.

Fixes AB#1449211.

InitializeTelemetrySession accessed options which triggered assembly load that caused deadlock.

As per AB#296981, the TelemetryService.DefaultSession property must be accessed on UI thread but the rest of Roslyn telemetry service initialization can be run on background thread.

The change moves telemetry initialization to VisualStudioWorkspaceImpl, so that it does not depend on RoslynPackage being loaded.

@tmat tmat requested a review from a team as a code owner January 6, 2022 19:32
@ghost ghost added the Area-IDE label Jan 6, 2022
@tmat tmat added this to the 17.1.P3 milestone Jan 6, 2022
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Jan 6, 2022

@jinujoseph For approval.

@tmat tmat merged commit e79b92e into dotnet:release/dev17.1 Jan 6, 2022
@tmat tmat deleted the Port branch January 6, 2022 22:16
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.

3 participants