hotspot/src/os/windows/vm/os_windows.cpp
changeset 193 171c404abf72
parent 1 489c9b5090e2
child 235 735f15bdea80
equal deleted inserted replaced
192:d66300cdf939 193:171c404abf72
   619 julong os::physical_memory() {
   619 julong os::physical_memory() {
   620   return win32::physical_memory();
   620   return win32::physical_memory();
   621 }
   621 }
   622 
   622 
   623 julong os::allocatable_physical_memory(julong size) {
   623 julong os::allocatable_physical_memory(julong size) {
       
   624 #ifdef _LP64
       
   625   return size;
       
   626 #else
       
   627   // Limit to 1400m because of the 2gb address space wall
   624   return MIN2(size, (julong)1400*M);
   628   return MIN2(size, (julong)1400*M);
       
   629 #endif
   625 }
   630 }
   626 
   631 
   627 // VC6 lacks DWORD_PTR
   632 // VC6 lacks DWORD_PTR
   628 #if _MSC_VER < 1300
   633 #if _MSC_VER < 1300
   629 typedef UINT_PTR DWORD_PTR;
   634 typedef UINT_PTR DWORD_PTR;