We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
ImmutableList<string>
ImmutableList<string>.Builder.Clear()
Expected:
The strings are eligible for GC.
Actual:
The ImmutableList<T>.Builder._immutableList field keeps the strings rooted until it is reset the next time ToImmutable() is called.
ImmutableList<T>.Builder._immutableList
ToImmutable()
Possible solutions:
_immutableList
_version
WeakReference<T>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
ImmutableList<string>
of stringsImmutableList<string>.Builder.Clear()
Expected:
The strings are eligible for GC.
Actual:
The
ImmutableList<T>.Builder._immutableList
field keeps the strings rooted until it is reset the next timeToImmutable()
is called.Possible solutions:
_immutableList
field each time_version
is incrementedWeakReference<T>
instead of storing_immutableList
directlyThe text was updated successfully, but these errors were encountered: