On Fri, 18 Dec 2020 22:33:11 GMT, Brent Christian <bchri...@openjdk.org> wrote:
> This change adds some extra test output for NativeLibraryTest, primarily via > an update to the ForceGC utility class. > > It was observed that there was nothing preventing the Cleaner from cleaning > the short-lived Object that ForceGC registers before > await()/doit()/System.gc() is even called. > > The new 'o' reference is kept alive until FoceGC.await() has been called. > > We should find out a little more the next time NativeLibraryTest fails (or > perhaps it won't fail anymore!) This pull request has now been integrated. Changeset: e680ebeb Author: Brent Christian <bchri...@openjdk.org> URL: https://git.openjdk.java.net/jdk16/commit/e680ebeb Stats: 13 lines in 2 files changed: 9 ins; 0 del; 4 mod 8258007: Add instrumentation to NativeLibraryTest Reviewed-by: mchung, naoto ------------- PR: https://git.openjdk.java.net/jdk16/pull/53