martinrb at google.com
Sun Jan 11 14:20:25 PST 2009
On Sun, Jan 11, 2009 at 13:52, Christian Thalinger
<christian.thalinger at gmail.com> wrote:
> Eh... well, this happens in HotSpot. Loading libzip.so is done in
> native code.
the boot class loader cannot be written in Java,
since then you would have a bootstrap problem.
So hotspot includes a native bootstrap class loader,
one that does not use libzip.so, but uses the same
code, but packaged in a different way,
probably linked statically into libjli.so.
Later on, after the core java classes are loaded,
the same libzip functionality wants to be used by Java code.
So libzip is loaded again, but using the Java-level loadLibrary.
> - Christian
More information about the hotspot-dev