Question: System.initializeSystemClass()
Ulf Zibis
Ulf.Zibis at gmx.de
Sun Jan 11 14:12:59 PST 2009
Am 11.01.2009 22:52, Christian Thalinger schrieb:
> On Sun, 2009-01-11 at 22:38 +0100, Ulf Zibis wrote:
>
>> Am 11.01.2009 22:30, Christian Thalinger schrieb:
>>
>>> I don't know the JDK 6 code, but I guess the zip library loading is the
>>> same (please correct me if I'm wrong). And I'm very sure it's the same
>>> on Windows.
>>>
>>>
>>>
>>>
>> I've compared JDK 6 to latest openJDK 6 sources.
>> You are right, I couldn't find a difference in classes System and ZipFile.
>>
>> So It's a mystery, how zip library can be preloaded on Linux.
>>
>
> Eh... well, this happens in HotSpot. Loading libzip.so is done in
> native code.
>
> - Christian
>
>
I guess, libzip.so is standard component of Linux, but on Windows it (1)
has different name (only zip.dll), and (2) is loaded from
JAVA_HOME\jre\bin and lazy by java.lang.System.initializeSystemClass().
So it's another mystery, why loadLibrary("zip") in
java.lang.System.initializeSystemClass() doesn't thow an exception on
Linux, as it is named "libzip.so".
-Ulf
More information about the hotspot-dev
mailing list