diff -r a7c0f60a1294 -r 294e48b4f704 hotspot/src/share/vm/runtime/safepoint.cpp --- a/hotspot/src/share/vm/runtime/safepoint.cpp Mon Sep 28 15:05:02 2015 +0200 +++ b/hotspot/src/share/vm/runtime/safepoint.cpp Tue Sep 29 11:02:08 2015 +0200 @@ -689,7 +689,7 @@ break; default: - fatal(err_msg("Illegal threadstate encountered: %d", state)); + fatal("Illegal threadstate encountered: %d", state); } // Check for pending. async. exceptions or suspends - except if the @@ -773,12 +773,10 @@ // To debug the long safepoint, specify both DieOnSafepointTimeout & // ShowMessageBoxOnError. if (DieOnSafepointTimeout) { - char msg[1024]; VM_Operation *op = VMThread::vm_operation(); - sprintf(msg, "Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", - SafepointTimeoutDelay, - op != NULL ? op->name() : "no vm operation"); - fatal(msg); + fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", + SafepointTimeoutDelay, + op != NULL ? op->name() : "no vm operation"); } }