hotspot/src/share/vm/compiler/disassembler.cpp
changeset 33583 af842015bfaa
parent 31592 43f48e165466
child 33585 3121a0276778
--- a/hotspot/src/share/vm/compiler/disassembler.cpp	Wed Jul 05 20:53:25 2017 +0200
+++ b/hotspot/src/share/vm/compiler/disassembler.cpp	Mon Oct 19 13:21:37 2015 -0400
@@ -88,6 +88,12 @@
   os::jvm_path(buf, sizeof(buf));
   int jvm_offset = -1;
   int lib_offset = -1;
+#ifdef STATIC_BUILD
+  char* p = strrchr(buf, '/');
+  *p = '\0';
+  strcat(p, "/lib/");
+  lib_offset = jvm_offset = strlen(buf);
+#else
   {
     // Match "jvm[^/]*" in jvm_path.
     const char* base = buf;
@@ -96,6 +102,7 @@
     p = strstr(p ? p : base, "jvm");
     if (p != NULL)  jvm_offset = p - base;
   }
+#endif
   // Find the disassembler shared library.
   // Search for several paths derived from libjvm, in this order:
   // 1. <home>/jre/lib/<arch>/<vm>/libhsdis-<arch>.so  (for compatibility)