Mercurial > hg > graal-jvmci-8
comparison src/os/posix/vm/os_posix.cpp @ 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 | da091bb67459 |
children | 7432b9db36ff |
comparison
equal
deleted
inserted
replaced
4749:7ab5f6318694 | 4750:b16494a69d3d |
---|---|
57 } | 57 } |
58 } | 58 } |
59 VMError::report_coredump_status(buffer, success); | 59 VMError::report_coredump_status(buffer, success); |
60 } | 60 } |
61 | 61 |
62 int os::get_last_error() { | |
63 return errno; | |
64 } | |
65 | |
62 bool os::is_debugger_attached() { | 66 bool os::is_debugger_attached() { |
63 // not implemented | 67 // not implemented |
64 return false; | 68 return false; |
65 } | 69 } |
66 | 70 |