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
[backport] Avoid retaining refs to previously added items after VectorBuilder.clear #10019
Conversation
@SethTisue I updated it, @jrudolph cc @SethTisue is it possible to reschedule this to 2.12.16? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be nice to have a test for this. there are a few GC tests in junit
you can potentially look at for examples, such as LazyListGCTest
I'd like to point out that on the original ticket, retronym called it a "clear bug" and added "(ha!)" so future researchers would not miss it. |
I pushed a test, I hope I did it right, I mean the git part. I didn't track down |
akka/akka#25623
845b0f0#diff-59f3462485b74027de4fd5e9febcc81bR627
I compared the code in Vector 2.13.x