Review request for 6612680 (Remove classloader dependency on jkernel)

Mandy Chung Mandy.Chung at Sun.COM
Sat Oct 3 23:03:51 PDT 2009

Alan, Karen,

Can you review the fix for:
    6612680: Remove classloader dependency on jkernel

Webrev at:

java.lang.ClassLoader and sun.misc.Launcher have explicit dependencies 
on the jkernel code.  While the performance impact of this is minimal 
(the calls basically amount to nops when the JRE is complete), it's 
still undesirable.

To eliminate the static dependency on jkernel, this adds a boot 
classloader hook interface that is invoked in the ClassLoader findClass, 
getSystemResource, and other methods.  The hook is null by default.  The 
jkernel VM will call the static  
DownloadManager.setBootClassLoaderHook() method and only the jkernel 
environment will have a non-null boot class loader hook.  Since jkernel 
is a separate build including the bundles and VM, as we discussed, the 
jkernel VM is a reasonable place to inject the DownloadManager as the 
boot class loader hook.

I'm hoping to make TL b74 which is code freeze by 10 pm PT Monday.


More information about the hotspot-runtime-dev mailing list