Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 16, 2022 01:59
@ghost ghost added the Area-IDE label Jun 16, 2022
@CyrusNajmabadi CyrusNajmabadi requested a review from mavasani June 16, 2022 02:00
// also, conditional weak table has a leak - https://github.com/dotnet/coreclr/issues/665
// we create new conditional weak table every time netstandard as that's the only way it has to clear it.
#if NETSTANDARD
_projectCompilationsWithAnalyzers = new ConditionalWeakTable<Project, CompilationWithAnalyzers?>();
Copy link
Member Author

Choose a reason for hiding this comment

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

assigning like this means the old value gets GC'ed which runs the finalizer for the CWT. the finalizer means everything this points at gets elevated to the next generation.

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge June 16, 2022 02:30
@CyrusNajmabadi
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@CyrusNajmabadi
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@CyrusNajmabadi CyrusNajmabadi merged commit e8dbd42 into dotnet:main Jun 16, 2022
@ghost ghost added this to the Next milestone Jun 16, 2022
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the clearCWT branch July 1, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants