RFR: 8317951: Refactor loading of zip library to help resolve JDK-8315220 [v3]
David Holmes
dholmes at openjdk.org
Mon Oct 23 00:32:26 UTC 2023
On Fri, 20 Oct 2023 09:18:10 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> I understand your point. The complication comes about from the usage in HeadDumperCompression, which only wants to reuse some functions in the zip library, init_params() and compress(). This caller is only invoked by means of an externally invoked jcmd, HeapDumpDCmd, iff the gzip compression level is set. To have this jcmd exit the VM is a departure from existing behaviour. So this change aligns with the existing behavior.
>>
>> The other client, which uses this in a more structured way, is ClassLoader:. It is used also by the JNI entry point JVM_LoadZipLibrary(). Even from this JNI entry point, the behaviour is to perform a vm_exit on failure.
>
> My current take is to keep the existing behaviours of these two callers in order to get rid of the Zip_lock.
>
> Should there be more callers in the future, additional adjustments and refactorings could be performed at that time.
I'd rather see this PR just address the refactoring and locking changes without changing any actual behaviour in terms of "vm exit" - that seems a separate issue.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16149#discussion_r1368010406
More information about the hotspot-runtime-dev
mailing list