Skip to content

Commit

Permalink
Use the "default" directory to access J9's libjvm
Browse files Browse the repository at this point in the history
Workaround for eclipse-openj9/openj9#14397.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh committed Feb 9, 2022
1 parent 56e8e42 commit 41cba94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/lib/jdk/test/lib/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ public static Path libDir(Path image) {
* Returns absolute path to directory containing JVM shared library.
*/
public static Path jvmLibDir() {
return libDir().resolve(variant());
if (isJ9()) {
return libDir().resolve("default");
} else {
return libDir().resolve(variant());
}
}

private static String variant() {
Expand Down

0 comments on commit 41cba94

Please sign in to comment.