JDK-7126185 : Clean up lasterror handling, add os::get_last_error()
Type:Enhancement
Component:hotspot
Sub-Component:runtime
Affected Version:hs23
Priority:P4
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2011-12-30
Updated:2012-03-29
Resolved:2012-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
In os_windows.cpp, os::lasterror and getLastErrorString are identical. The
latter should be eliminated. In addition, Java Flight Recorder uses errno
and its Windows equivalent for error reporting, so add os::get_last_error()
to retrieve it.