You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/03/12 12:05:41 UTC
Re: [PR] CXF-7710: ClientImpl is memory-leak prone [cxf]
gnodet commented on PR #409:
URL: https://github.com/apache/cxf/pull/409#issuecomment-4046218790
Closing this PR — CXF-7710 has been properly resolved on main through a superior approach: `releaseThreadContexts()` + an `AutoCloseable` `Client.Contexts` API that allows try-with-resources cleanup. The approach in this PR (using `new String(threadName)` as `WeakHashMap` key) was identified by reviewers as fundamentally flawed — the keys have no strong references and can be GC'd immediately. Thank you for the contribution\!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org