src/os/linux/vm/os_linux.cpp
Print this page
*** 189,212 ****
julong os::physical_memory() {
return Linux::physical_memory();
}
- julong os::allocatable_physical_memory(julong size) {
- #ifdef _LP64
- return size;
- #else
- julong result = MIN2(size, (julong)3800*M);
- if (!is_allocatable(result)) {
- // See comments under solaris for alignment considerations
- julong reasonable_size = (julong)2*G - 2 * os::vm_page_size();
- result = MIN2(size, reasonable_size);
- }
- return result;
- #endif // _LP64
- }
-
////////////////////////////////////////////////////////////////////////////////
// environment support
bool os::getenv(const char* name, char* buf, int len) {
const char* val = ::getenv(name);
--- 189,198 ----