Prevent JVM System.loadLibrary call that looks through all paths#457
Open
abbasvalliani wants to merge 2 commits intobytedeco:masterfrom
Open
Prevent JVM System.loadLibrary call that looks through all paths#457abbasvalliani wants to merge 2 commits intobytedeco:masterfrom
abbasvalliani wants to merge 2 commits intobytedeco:masterfrom
Conversation
Member
|
It doesn't do that to start with, this is not an issue: #456 (comment) |
Member
|
Please let me know how to reproduce the initial issue. It's not worth merging this if everything works as expected already. |
Author
|
Clearly their is an issue in windows. Mac and Linux is perfectly fine. Will create a simple example tomorrow and figure it out.
On 2/11/2021 7:18:50 PM, Samuel Audet <notifications@github.com> wrote:
Please let me know how to reproduce the initial issue. It's not worth merging this if everything works as expected already.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#457 (comment)], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AFO5B33JF4OICB5MPVOSWNDS6RXWTANCNFSM4XD64DVQ].
|
Member
|
I can't reproduce this on my installation of Windows 10 either. This is what I get with libopenblas.dll from MSYS2 in the PATH: public class TestLoad {
public static void main(String[] args) {
System.loadLibrary("libopenblas");
}
}$ java -version
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
$ java TestLoad
$ java -Djava.library.path= TestLoad
Exception in thread "main" java.lang.UnsatisfiedLinkError: no libopenblas in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at TestLoad.main(TestLoad.java:3) |
Member
|
BTW, if you've only tried it with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, even if java.library.path is set to nothing, the System.loadLibrary is called which searches through all paths to load the libraries. This creates a significant delay in startup.