Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/os.hpp @ 4750:b16494a69d3d
7126185: Clean up lasterror handling, add os::get_last_error()
Summary: Add os::get_last_error(), replace getLastErrorString() by os::lasterror() in os_windows.cpp.
Reviewed-by: kamg, dholmes
Contributed-by: erik.gahlin@oracle.com
author | phh |
---|---|
date | Tue, 03 Jan 2012 15:11:31 -0500 |
parents | 7ab5f6318694 |
children | 2b3acb34791f |
comparison
equal
deleted
inserted
replaced
4749:7ab5f6318694 | 4750:b16494a69d3d |
---|---|
500 static void print_signal_handlers(outputStream* st, char* buf, size_t buflen); | 500 static void print_signal_handlers(outputStream* st, char* buf, size_t buflen); |
501 static void print_date_and_time(outputStream* st); | 501 static void print_date_and_time(outputStream* st); |
502 | 502 |
503 static void print_location(outputStream* st, intptr_t x, bool verbose = false); | 503 static void print_location(outputStream* st, intptr_t x, bool verbose = false); |
504 static size_t lasterror(char *buf, size_t len); | 504 static size_t lasterror(char *buf, size_t len); |
505 static int get_last_error(); | |
505 | 506 |
506 // Determines whether the calling process is being debugged by a user-mode debugger. | 507 // Determines whether the calling process is being debugged by a user-mode debugger. |
507 static bool is_debugger_attached(); | 508 static bool is_debugger_attached(); |
508 | 509 |
509 // wait for a key press if PauseAtExit is set | 510 // wait for a key press if PauseAtExit is set |