RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v2]

Mandy Chung mchung at openjdk.java.net
Fri Feb 11 18:10:11 UTC 2022


On Fri, 11 Feb 2022 10:11:50 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> there is still residual common logic in how clients are expected to load libraries (e.g. either using a file name/absolute path, or using a library name, without file separator chars). These assumption seem very heavily influenced by how System::load/loadLibrary do things, I believe - and I wonder if they can, in the future, create other obstacles for a raw kind of library loading (which expects to be mostly a wrapper around dlopen/LoadLibrary). But that's a question/problem for another day.

Good point.  With the removal of the restriction, the raw library loading implementation can further be cleaned up (not be tied with the jni library loading logic).   I'll look into what it takes and whether I should do it in this PR.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7435


More information about the core-libs-dev mailing list