Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp Wed Dec 05 09:03:00 2007 -0800 +++ b/src/os/windows/vm/os_windows.cpp Wed Dec 05 09:04:00 2007 -0800 @@ -621,7 +621,12 @@ } julong os::allocatable_physical_memory(julong size) { +#ifdef _LP64 + return size; +#else + // Limit to 1400m because of the 2gb address space wall return MIN2(size, (julong)1400*M); +#endif } // VC6 lacks DWORD_PTR