src/os/posix/vm/os_posix.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8026324.01 Cdiff src/os/posix/vm/os_posix.cpp

src/os/posix/vm/os_posix.cpp

Print this page

        

*** 234,243 **** --- 234,250 ---- st->print("%s ", name.version); st->print("%s", name.machine); st->cr(); } + #ifndef PRODUCT + bool os::get_host_name(char* buf, size_t buflen) { + // could use uname as in above also + return (gethostname(buf, buflen) != -1); + } + #endif // PRODUCT + bool os::has_allocatable_memory_limit(julong* limit) { struct rlimit rlim; int getrlimit_res = getrlimit(RLIMIT_AS, &rlim); // if there was an error when calling getrlimit, assume that there is no limitation // on virtual memory.
src/os/posix/vm/os_posix.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File