mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8148425: strerror() function is not thread-safe
Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
69e1552338
commit
3487b38cc4
22 changed files with 300 additions and 137 deletions
|
@ -224,6 +224,11 @@ void report_vm_error(const char* file, int line, const char* error_msg, const ch
|
|||
va_end(detail_args);
|
||||
}
|
||||
|
||||
void report_vm_status_error(const char* file, int line, const char* error_msg,
|
||||
int status, const char* detail) {
|
||||
report_vm_error(file, line, error_msg, "error %s(%d), %s", os::errno_name(status), status, detail);
|
||||
}
|
||||
|
||||
void report_fatal(const char* file, int line, const char* detail_fmt, ...)
|
||||
{
|
||||
if (Debugging || error_is_suppressed(file, line)) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue