7126185: Clean up lasterror handling, add os::get_last_error()

Add os::get_last_error(), replace getLastErrorString() by os::lasterror() in os_windows.cpp.

Reviewed-by: kamg, dholmes
This commit is contained in:
Erik Gahlin 2012-01-03 15:11:31 -05:00 committed by Paul Hohensee
parent c323bcdca8
commit 5782866b28
3 changed files with 26 additions and 53 deletions

View file

@ -502,6 +502,7 @@ class os: AllStatic {
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();
// Determines whether the calling process is being debugged by a user-mode debugger.
static bool is_debugger_attached();