From c69c0cf5e74daa333207f8c45bb830f2577f480d Mon Sep 17 00:00:00 2001 From: fparain Date: Fri, 5 Jul 2013 08:26:49 +0000 Subject: [PATCH] 8016465: The hs_err file gets wrong name Reviewed-by: dcubed, dholmes, rdurbin --- hotspot/src/share/vm/utilities/vmError.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hotspot/src/share/vm/utilities/vmError.cpp b/hotspot/src/share/vm/utilities/vmError.cpp index 64f753bc75..873f479d60 100644 --- a/hotspot/src/share/vm/utilities/vmError.cpp +++ b/hotspot/src/share/vm/utilities/vmError.cpp @@ -908,10 +908,11 @@ void VMError::report_and_die() { // This is not the first error, see if it happened in a different thread // or in the same thread during error reporting. if (first_error_tid != mytid) { - jio_snprintf(buffer, sizeof(buffer), + char msgbuf[64]; + jio_snprintf(msgbuf, sizeof(msgbuf), "[thread " INT64_FORMAT " also had an error]", mytid); - out.print_raw_cr(buffer); + out.print_raw_cr(msgbuf); // error reporting is not MT-safe, block current thread os::infinite_sleep(); -- GitLab