-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Add ReferenceCountUtil.touch(...) calls before we store messages into… #13838
Conversation
… a queue to make debugging leaks easier Motivation: We should touch our messages when we take over ownership, this allows easier debugging of buffer leaks. Modifications: Let's add touch call before enqueue into internal datastructure Result: Easier to debug buffer leaks
Why not calling buf.touch directly? It would resolve to a nice invokevirtual instead of interface check and invokeinterface |
done |
@franz1981 PTAL again |
I see there are still I know it's sad we have to perform something like that, but it depends by how many "receivers" (ie different concrete classes) are observed at the |
Yeah I hink you are right... PTAL again. |
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.
And thanks for the patience @normanmaurer , much appreciated!
… a queue to make debugging leaks easier
Motivation:
We should touch our messages when we take over ownership, this allows easier debugging of buffer leaks.
Modifications:
Let's add touch call before enqueue into internal datastructure
Result:
Easier to debug buffer leaks