--- old/src/share/vm/utilities/events.cpp 2014-04-29 16:57:21.000000000 -0400 +++ new/src/share/vm/utilities/events.cpp 2014-04-29 16:57:21.000000000 -0400 @@ -82,7 +82,7 @@ va_start(ap, format); // Save a copy of begin message and log it. _buffer.printv(format, ap); - Events::log(NULL, _buffer); + Events::log(NULL, "%s", _buffer.buffer()); va_end(ap); } } @@ -91,6 +91,6 @@ if (LogEvents) { // Append " done" to the begin message and log it _buffer.append(" done"); - Events::log(NULL, _buffer); + Events::log(NULL, "%s", _buffer.buffer()); } }