RFR: JDK-8319516 - Native library suffix impact on the library loading in AIX- Java Class Loader [v10]

Suchismith Roy sroy at openjdk.org
Fri Apr 5 08:11:04 UTC 2024


On Thu, 4 Apr 2024 17:38:31 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> test/jdk/java/lang/RuntimeTests/loadLibrary/LoadLibraryTestAIX.java line 38:
>> 
>>> 36:         } catch (Exception e) {
>>> 37:             throw new RuntimeException("LoadLibraryTestAIX : could not load libperfstat.a"+e);
>>> 38:         }
>> 
>> Nit: the catch clause is not strictly needed.   `UnsatisfiedLinkError` is an unchecked exception.   The test should fail if you run it with JDK without this fix.
>
> The test should verify if `/usr/lib/libperstat.a` is present and also `/usr/lib/libperfstat.so` is not present.
> 
> Do you expect all AIX machines do not have `/usr/lib/libperfstat.so`?

Yes it is expected.  the hotspot code has harcoded it to .a file.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17945#discussion_r1553156812


More information about the core-libs-dev mailing list