--- old/src/share/vm/compiler/disassembler.cpp 2015-10-15 12:36:20.790557078 -0400 +++ new/src/share/vm/compiler/disassembler.cpp 2015-10-15 12:36:20.182522883 -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. /jre/lib///libhsdis-.so (for compatibility)