RFR: JDK-8288746: HttpClient resources could be reclaimed more eagerly
Daniel Fuchs
dfuchs at openjdk.org
Tue Jun 21 09:24:52 UTC 2022
On Mon, 20 Jun 2022 18:28:36 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
> Shouldn't we use `Reference.refersTo()` instead of `Reference.get() == smth` in lines 428 and 501?
Hi Sergey, we could, and I'll do it for consistency.
Though in those two cases it doesn't really matter since the facade referent is not supposed to be null (it can't since there still exist strong references), so keeping the reference alive longer than it should is not a concern there.
-------------
PR: https://git.openjdk.org/jdk/pull/9217
More information about the core-libs-dev
mailing list