mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8148219: Add decorator hostname to UL
Reviewed-by: dholmes, mlarsson
This commit is contained in:
parent
6d0ef1b692
commit
a81f4a10da
7 changed files with 29 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -238,14 +238,12 @@ void os::Posix::print_uname_info(outputStream* st) {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue