Mercurial > hg > truffle
comparison src/os/windows/vm/os_windows.cpp @ 20:e195fe4c40c7
6629887: 64-bit windows should not restrict default heap size to 1400m
Reviewed-by: jmasa, sbohne, ikrylov, xlu
author | phh |
---|---|
date | Wed, 05 Dec 2007 09:04:00 -0800 |
parents | a61af66fc99e |
children | cd0742ba123c |
comparison
equal
deleted
inserted
replaced
19:a73cc31728fe | 20:e195fe4c40c7 |
---|---|
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; |