RFR: 8287384: Speed up jdk.test.lib.util.ForceGC
Mandy Chung
mchung at openjdk.java.net
Tue May 31 17:44:54 UTC 2022
On Thu, 26 May 2022 21:40:42 GMT, Xue-Lei Andrew Fan <xuelei at 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
More information about the core-libs-dev
mailing list