-
Notifications
You must be signed in to change notification settings - Fork 95
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
make the meta-object alive in the lifecycle of the registered plugin #201
make the meta-object alive in the lifecycle of the registered plugin #201
Conversation
…ugin Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Can you please provide more information about the bug this PR will address? |
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Thanks for your reply. I have updated the description in #201 (comment). In order to not make the relative issue complicated, I used the existing test case to show the problem. |
… utest Signed-off-by: Chen Lihui <lihui.chen@sony.com>
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.
Introducing unique_ptr
can keep the meta object as long as proxy object is alive and guarantee to delete the object, this makes sense to address the issue.
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
5cd61f2
to
02e1a8a
Compare
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Thanks for the contribution! |
@iuhilnehc-ynos I was hopeful that your much simpler change here would fix the bugs found by asan... but it unfortunately does not: https://github.com/tylerjw/class_loader/actions/runs/3298507574/jobs/5440716254 |
Thanks for your information, but I think this PR is to address the memory leak about the meta-object is not destroyed during a process exit if using |
This PR is to address the memory leak about the meta-object is not destroyed during a process exit if using
ClassLoader
.memory leak log
Signed-off-by: Chen Lihui lihui.chen@sony.com