hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 977 b90650e2a9f7
parent 823 9a5271881bc0
parent 976 241230d48896
child 978 6d85d2f51365
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Fri Jul 25 11:29:03 2008 -0700
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Mon Jul 28 15:30:23 2008 -0700
@@ -2658,6 +2658,12 @@
      top += r;
      cur++;
    }
+   if (bottom == 0) {
+     // Handle a situation, when the OS reports no memory available.
+     // Assume UMA architecture.
+     ids[0] = 0;
+     return 1;
+   }
    return bottom;
 }
 
@@ -4581,7 +4587,7 @@
 }
 
 void os::Solaris::liblgrp_init() {
-  void *handle = dlopen("liblgrp.so", RTLD_LAZY);
+  void *handle = dlopen("liblgrp.so.1", RTLD_LAZY);
   if (handle != NULL) {
     os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home")));
     os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init")));