JDK-8258007 : Add instrumentation to NativeLibraryTest
  • Type: Sub-task
  • Component: core-libs
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-09
  • Updated: 2021-01-20
  • Resolved: 2020-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16 JDK 17
16 b30Fixed 17Fixed
Description
Some instrumentation is needed to figure out what's going on with JDK-8257996.

Comments
Changeset: e680ebeb Author: Brent Christian <bchristi@openjdk.org> Date: 2020-12-19 00:17:02 +0000 URL: https://git.openjdk.java.net/jdk16/commit/e680ebeb
19-12-2020

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.
18-12-2020