On Thu, 26 May 2022 21:40:42 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:

> Even using a Cleaner is a more overhead than necessary.
> I would have skipped the overhead of a cleaner and Atomic classes with 
> something more self contained as a static method:

Hmm... one benefit of Cleaner is the ease of use to avoid the need of managing 
the reference queue.  If the performance of the Cleaner API is a concern, 
perhaps we should look into reducing its overhead?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8907

Reply via email to