mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8234397: add OS uptime information to os::print_os_info output
Reviewed-by: clanger, dholmes, lucy
This commit is contained in:
parent
f67111067e
commit
14391e8046
12 changed files with 78 additions and 0 deletions
|
@ -632,6 +632,9 @@ class os: AllStatic {
|
|||
static void print_date_and_time(outputStream* st, char* buf, size_t buflen);
|
||||
static void print_instructions(outputStream* st, address pc, int unitsize);
|
||||
|
||||
// helper for output of seconds in days , hours and months
|
||||
static void print_dhm(outputStream* st, const char* startStr, long sec);
|
||||
|
||||
static void print_location(outputStream* st, intptr_t x, bool verbose = false);
|
||||
static size_t lasterror(char *buf, size_t len);
|
||||
static int get_last_error();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue