src/os/posix/vm/os_posix.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8026324.02 Cdiff src/os/posix/vm/os_posix.cpp
src/os/posix/vm/os_posix.cpp
Print this page
*** 234,243 ****
--- 234,252 ----
st->print("%s ", name.version);
st->print("%s", name.machine);
st->cr();
}
+ #ifndef PRODUCT
+ bool os::get_host_name(char* buf, size_t buflen) {
+ struct utsname name;
+ uname(&name);
+ jio_snprintf(buf, buflen, "%s", name.nodename);
+ return true;
+ }
+ #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