Skip to content
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 'cache = null' to help PoolThreadCache GC finalizer in PoolByteBuf. #12881

Merged
merged 1 commit into from Oct 11, 2022

Conversation

horizonzy
Copy link
Contributor

Motivation:
PoolByteBuf deallocate not make cache = null, and recycle PoolByteBuf, so the PollThreadCache is always reachable by GC root. It is reachable until the cache is overridden at the next init.

@horizonzy horizonzy changed the title Make 'cache = null' to help PoolThreadCache GC finalizer. Make 'cache = null' to help PoolThreadCache GC finalizer in PoolByteBuf. Oct 11, 2022
@normanmaurer
Copy link
Member

@horizonzy can you please sign our icla and let me know once done ? https://netty.io/s/icla

@normanmaurer normanmaurer added this to the 4.1.83.Final milestone Oct 11, 2022
@horizonzy
Copy link
Contributor Author

@horizonzy can you please sign our icla and let me know once done ? https://netty.io/s/icla

done

@normanmaurer normanmaurer merged commit 1751440 into netty:4.1 Oct 11, 2022
@normanmaurer
Copy link
Member

@horizonzy thanks a lot!

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.

None yet

2 participants