On Thu, 26 May 2022 21:22:23 GMT, Roger Riggs <rri...@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:

I agreed that  the using of Cleaner is still heavy, but it may be acceptable as 
the code is for testing only.   If a new static method is introduced, test 
cases using the current API would also need update so as to benefit from it.  I 
was hesitate for test cases update as it may involve more evaluations (and 
risks).  But let me check.

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

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

Reply via email to