RFR 8190359: Reduce the number of recorded klass dependencies

harold seigel harold.seigel at oracle.com
Tue Jan 30 18:38:54 UTC 2018


Hi,

Please review this RFR for JDK-11 to reduce the number of class 
dependencies recorded by the VM.  The change primarily does this by not 
recording dependencies to classes that are loaded by a builtin class 
loader and are not anonymous.  These classes never get unloaded, so no 
recorded dependency is needed.

Additionally, the change simplifies the code that deals with when the 
classes have the same class loader and when the dependency is to a class 
loaded by a parent loader.

Open Webrev: 
http://cr.openjdk.java.net/~hseigel/bug_8190359/webrev/index.html

JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8190359

The change was tested with JPRT, Mach 5 tier1 - tier5 tests, and 
non-colocated tonga tests.  Additionally, print statements were 
temporarily added to the code and the output analyzed to check that 
dependencies were being correctly recorded or not recorded.

Thanks, Harold


More information about the hotspot-runtime-dev mailing list