diff 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
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp	Sun Jan 01 11:17:59 2012 -0500
+++ b/src/share/vm/runtime/os.hpp	Tue Jan 03 15:11:31 2012 -0500
@@ -502,6 +502,7 @@
 
   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();