< prev index next >

src/share/vm/runtime/safepoint.cpp

Print this page

        

@@ -687,11 +687,11 @@
 
       Threads_lock->unlock();
       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
   // thread was blocked inside the VM. has_special_runtime_exit_condition()
   // is called last since it grabs a lock and we only want to do that when

@@ -771,16 +771,14 @@
   }
 
   // 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.",
+    fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",
             SafepointTimeoutDelay,
             op != NULL ? op->name() : "no vm operation");
-    fatal(msg);
   }
 }
 
 
 // -------------------------------------------------------------------------------------------------------
< prev index next >