-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixed dangling pointer in Balancer #603
Conversation
Unit testing passed. |
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.
Good catch!! 👍
I think we should enable ASAN by default during development
As original implementation, after plan_.reset(), we did not access any members in plan_ in onFinished_. The program crashed? |
After |
Fair enough! |
Thanks to @wadeliuyi for discovering the race condition problem. |
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.
Good catch! 👍
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.
Well done!
Unit testing passed. |
Unit testing passed. |
* Fixed dangling pointer in Balancer * Put CAS at the bottom to eliminate the race condition
* Push limit to Traverse. * Fix case. * Fix format. * Add int vid cases. * Support parameter. * Format. Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
As title.