summary refs log tree commit diff
path: root/pkgs/development/compilers/openjdk/fix-java-home-jdk9.patch
blob: f9755d58e48f1a913e6e56e0bc4940c183f26edd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/hotspot/src/os/linux/vm/os_linux.cpp	2017-07-04 23:09:02.533972226 -0400
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	2017-07-04 23:07:52.118338845 -0400
@@ -2318,10 +2318,7 @@
   assert(ret, "cannot locate libjvm");
   char *rp = NULL;
   if (ret && dli_fname[0] != '\0') {
-    rp = realpath(dli_fname, buf);
-  }
-  if (rp == NULL) {
-    return;
+    snprintf(buf, buflen, "%s", dli_fname);
   }
 
   if (Arguments::sun_java_launcher_is_altjvm()) {