1.1 --- a/src/share/vm/utilities/ostream.cpp Wed Jun 25 15:51:15 2014 -0700 1.2 +++ b/src/share/vm/utilities/ostream.cpp Thu Jun 19 13:31:14 2014 +0200 1.3 @@ -24,6 +24,7 @@ 1.4 1.5 #include "precompiled.hpp" 1.6 #include "compiler/compileLog.hpp" 1.7 +#include "gc_implementation/shared/gcId.hpp" 1.8 #include "oops/oop.inline.hpp" 1.9 #include "runtime/arguments.hpp" 1.10 #include "utilities/defaultStream.hpp" 1.11 @@ -240,6 +241,14 @@ 1.12 return; 1.13 } 1.14 1.15 +void outputStream::gclog_stamp(const GCId& gc_id) { 1.16 + date_stamp(PrintGCDateStamps); 1.17 + stamp(PrintGCTimeStamps); 1.18 + if (PrintGCID) { 1.19 + print("#%u: ", gc_id.id()); 1.20 + } 1.21 +} 1.22 + 1.23 outputStream& outputStream::indent() { 1.24 while (_position < _indentation) sp(); 1.25 return *this;