hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 14120 7d298141c258
parent 13975 2f7431485cfa
child 14471 f3a6b82e25cf
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Thu Oct 18 13:09:47 2012 -0400
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Fri Oct 19 21:40:07 2012 -0400
@@ -55,6 +55,7 @@
 #include "runtime/threadCritical.hpp"
 #include "runtime/timer.hpp"
 #include "services/attachListener.hpp"
+#include "services/memTracker.hpp"
 #include "services/runtimeService.hpp"
 #include "thread_solaris.inline.hpp"
 #include "utilities/decoder.hpp"
@@ -3072,11 +3073,12 @@
   // Since snv_84, Solaris attempts to honor the address hint - see 5003415.
   // Give it a try, if the kernel honors the hint we can return immediately.
   char* addr = Solaris::anon_mmap(requested_addr, bytes, 0, false);
+
   volatile int err = errno;
   if (addr == requested_addr) {
     return addr;
   } else if (addr != NULL) {
-    unmap_memory(addr, bytes);
+    pd_unmap_memory(addr, bytes);
   }
 
   if (PrintMiscellaneous && Verbose) {