ConditionalWeakTable does not release values if values reference the ConditionalWeaktable itself #3273
Labels
area-System.Runtime.CompilerServices
doc-enhancement
Improve the current content
Pri3
Indicates issues/PRs that are low priority
Milestone
This is a special case described at https://github.com/dotnet/corefx/issues/19765. The issue is if one of the values added to the
ConditionalWeakTable
references the table itself then one must callClear
(or use one of the other workarounds described on the issue) to ensure that there are no leaks.This is not mentioned explicit on the docs but seems a special case that should be documented to save users from memory leaks.
The text was updated successfully, but these errors were encountered: