* Glavo:
> I wish OpenJDK would parse the /etc/ld.so.conf to get the full library
> path list so it would be consistent with the behavior of ld. Can
> anyone consider this suggestion?
Parsing /etc/ld.so.conf is the wrong approach. Even glibc itself does
not look at that file at run time, it's
>
> As for Panama, note that the SymbolLookup API allows a better way to
> load system libraries, with its SymbolLookup::libraryLookup factory:
>
>
>
Hi Glavo,
parsing ld.conf is something that some frameworks do (e.g. JNR). Last
time I checked there was some concerns in having hotspot bootstrap code
depending on the results of an external tool, whose output could change
over time. Currently, IIRC the list of path is just a compiler
On 5/01/2024 12:24 am, Glavo wrote:
I expect there are security reasons why the JDK tries to find
the file itself in these specific paths, rather than letting the
platform code search for it.
I think this should have nothing to do with security. If there is a
vulnerability in the
>
> I expect there are security reasons why the JDK tries to find
> the file itself in these specific paths, rather than letting the
> platform code search for it.
>
I think this should have nothing to do with security. If there is a
vulnerability in the platform code, there is nothing the JDK
On 4/01/2024 1:36 pm, Glavo wrote:
Hey David,
AFAICS java.library.path (and sun.boot.library.path) are input
properties that can be set by the user. There are no "default" values
for these properties as such.
Although they can be set by the user, they have default values.
For
Hey David,
> AFAICS java.library.path (and sun.boot.library.path) are input
> properties that can be set by the user. There are no "default" values
> for these properties as such.
>
Although they can be set by the user, they have default values.
For Linux, the default value is set here:
Hi Glavo,
On 24/12/2023 4:18 am, Glavo wrote:
Hi,
There are already many Linux distributions that are following the
multiarch-spec[1] and adding the following paths to the default library
path list:
* /usr/local/lib/
* /lib/
* /usr/lib/
But OpenJDK doesn't add these paths to the
Hi,
There are already many Linux distributions that are following the
multiarch-spec[1] and adding the following paths to the default library
path list:
- /usr/local/lib/
- /lib/
- /usr/lib/
But OpenJDK doesn't add these paths to the java.library.path by default, so