Question: System.initializeSystemClass()

Ulf Zibis Ulf.Zibis at gmx.de
Mon Jan 12 01:21:35 PST 2009


Martin,

thanks for additional explanation.

So do you also think, that there is no problem, to load zip library 
before opening the standard I/O streams out and err, as I explained in 
my starter question ?

Thanks for some short answer.

-Ulf


Am 11.01.2009 23:20, Martin Buchholz schrieb:
> 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.
>
> Martin
>   
>> - Christian
>>
>>
>>     
>
>
>   




More information about the hotspot-dev mailing list