Skip to content

Add close tracing to retain calls#15832

Merged
normanmaurer merged 1 commit into
netty:4.2from
chrisvest:4.2-close-trace-retain
Nov 8, 2025
Merged

Add close tracing to retain calls#15832
normanmaurer merged 1 commit into
netty:4.2from
chrisvest:4.2-close-trace-retain

Conversation

@chrisvest
Copy link
Copy Markdown
Member

Motivation:
We attach close traces to release calls.
It is also possible that retain will be called on a released object, so we should trace those as well.

Modification:
Attach close traces, if any, to any retaining methods that throw IllegalReferenceCountException in SimpleLeakAwareByteBuf.

Result:
We now get close traces from various retain methods as well.

Motivation:
We attach close traces to release calls.
It is also possible that retain will be called on a released object, so we should trace those as well.

Modification:
Attach close traces, if any, to any retaining methods that throw IllegalReferenceCountException in SimpleLeakAwareByteBuf.

Result:
We now get close traces from various retain methods as well.
@normanmaurer normanmaurer added this to the 4.2.8.Final milestone Nov 8, 2025
@normanmaurer normanmaurer merged commit 0eb3a1e into netty:4.2 Nov 8, 2025
17 of 19 checks passed
@chrisvest chrisvest deleted the 4.2-close-trace-retain branch November 10, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants