RFR: 8287384: Speed up jdk.test.lib.util.ForceGC
Xue-Lei Andrew Fan
xuelei at openjdk.java.net
Thu May 26 21:44:34 UTC 2022
On Thu, 26 May 2022 21:22:23 GMT, Roger Riggs <rriggs 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:
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
More information about the core-libs-dev
mailing list