Mon, 07 Oct 2013 14:10:29 +0400
8025849: Redundant "pid" in VM log file name (e.g. hotspot_pidpid12345.log)
Reviewed-by: twisti, azeemj
src/share/vm/utilities/ostream.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/utilities/ostream.cpp Fri Oct 04 19:05:32 2013 -0700 1.2 +++ b/src/share/vm/utilities/ostream.cpp Mon Oct 07 14:10:29 2013 +0400 1.3 @@ -465,7 +465,7 @@ 1.4 } 1.5 1.6 // log_name comes from -XX:LogFile=log_name or -Xloggc:log_name 1.7 -// in log_name, %p => pipd1234 and 1.8 +// in log_name, %p => pid1234 and 1.9 // %t => YYYY-MM-DD_HH-MM-SS 1.10 static const char* make_log_name(const char* log_name, const char* force_directory) { 1.11 char timestr[32]; 1.12 @@ -792,7 +792,7 @@ 1.13 1.14 void defaultStream::init_log() { 1.15 // %%% Need a MutexLocker? 1.16 - const char* log_name = LogFile != NULL ? LogFile : "hotspot_pid%p.log"; 1.17 + const char* log_name = LogFile != NULL ? LogFile : "hotspot_%p.log"; 1.18 const char* try_name = make_log_name(log_name, NULL); 1.19 fileStream* file = new(ResourceObj::C_HEAP, mtInternal) fileStream(try_name); 1.20 if (!file->is_open()) {