-
Notifications
You must be signed in to change notification settings - Fork 412
fix(core) Checkpoint::drop memory leak
#2056
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
fix(core) Checkpoint::drop memory leak
#2056
Conversation
548f1fa to
a3bbba8
Compare
ValuedMammal
left a comment
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.
ACK a3bbba8
a3bbba8 to
20f6844
Compare
20f6844 to
5516165
Compare
evanlinjin
left a comment
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.
Fix memory leak bug in `CheckPoint::drop` by using `Arc::into_inner`. Fix `CPInner::drop` logic so that if `CPInner::block` becomes generic and is of a type that required `drop`, it does not leak memory. Add tests for memory leak + stack overflow when dropping `CheckPoint`.
5516165 to
0bd93da
Compare
|
I've rebased it on top of master, so it should be ready to go. |
evanlinjin
left a comment
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.
ACK 0bd93da
based on #1997, depends on #2055
Description
Fix memory leak bug in CheckPoint::drop by using Arc::into_inner.
Add tests (from the old PR) for memory leak + stack overflow when dropping CheckPoint.
Notes to the reviewers
It should be merged after #2055.
Changelog notice
Checklists
All Submissions:
Bugfixes: