hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 8476 7e34c2d4cf9b
parent 8106 19106a0203fb
child 8478 d89e2f60ba40
equal deleted inserted replaced
8475:c2b97a27943a 8476:7e34c2d4cf9b
  2505   Dl_info dlinfo;
  2505   Dl_info dlinfo;
  2506   int ret = dladdr(CAST_FROM_FN_PTR(void *, os::jvm_path), &dlinfo);
  2506   int ret = dladdr(CAST_FROM_FN_PTR(void *, os::jvm_path), &dlinfo);
  2507   assert(ret != 0, "cannot locate libjvm");
  2507   assert(ret != 0, "cannot locate libjvm");
  2508   realpath((char *)dlinfo.dli_fname, buf);
  2508   realpath((char *)dlinfo.dli_fname, buf);
  2509 
  2509 
  2510   if (strcmp(Arguments::sun_java_launcher(), "gamma") == 0) {
  2510   if (Arguments::created_by_gamma_launcher()) {
  2511     // Support for the gamma launcher.  Typical value for buf is
  2511     // Support for the gamma launcher.  Typical value for buf is
  2512     // "<JAVA_HOME>/jre/lib/<arch>/<vmtype>/libjvm.so".  If "/jre/lib/" appears at
  2512     // "<JAVA_HOME>/jre/lib/<arch>/<vmtype>/libjvm.so".  If "/jre/lib/" appears at
  2513     // the right place in the string, then assume we are installed in a JDK and
  2513     // the right place in the string, then assume we are installed in a JDK and
  2514     // we're done.  Otherwise, check for a JAVA_HOME environment variable and fix
  2514     // we're done.  Otherwise, check for a JAVA_HOME environment variable and fix
  2515     // up the path so it looks like libjvm.so is installed there (append a
  2515     // up the path so it looks like libjvm.so is installed there (append a