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>
fujitatomoya
left a comment
There was a problem hiding this comment.
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