RFR: 8317951: Refactor loading of zip library to help resolve JDK-8315220 [v2]
Markus Grönlund
mgronlun at openjdk.org
Thu Oct 19 08:31:55 UTC 2023
On Thu, 19 Oct 2023 08:24:31 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> src/hotspot/share/utilities/zipLibrary.cpp line 152:
>>
>>> 150:
>>> 151: jzentry* ZipLibrary::find_entry(jzfile* zip, const char* name, jint* sizeP, jint* nameLen) {
>>> 152: initialize();
>>
>> Again don't we have to have initialized things to get the library we are now searching? The same goes for all(?) the other methods.
>
> No, this is lazy library loading and initialisation as part of all the API entries (except close).
ZipLibrary is a static facade wrapping the entry points implemented in the real, native zip library.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16149#discussion_r1365113179
More information about the hotspot-runtime-dev
mailing list