RFR (XS): 8023134: Rename VM LogFile to hotspot_pid{pid}.log (was hotspot.log)

Bengt Rutisson bengt.rutisson at oracle.com
Tue Sep 10 05:31:44 PDT 2013

On 9/10/13 1:31 PM, Staffan Larsen wrote:
> I'm not sure this change is only to the better. Since every run of a debug-build of hotspot creates this file, there is now going to be an enormous amount of these files create. At least for me that is going to be a big nuisance since they will clutter up every directory where I run hotspot. Would it be possible to keep hotspot.log as the default name, and have a flag which multiprocess tests can use to include the pid in the name?

I agree with Staffan. This seems to be a quite invasive change in the 
sense that it will create lots of files in our test and development 

In fact, isn't it possible for the multiprocess tests that have issues 
to just specify the LogFile as:


That wouldn't require any changes to the VM at all.


> /Staffan
> On 9 sep 2013, at 14:24, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
>> http://cr.openjdk.java.net/~vlivanov/8023134/webrev.00/
>> 7 lines changed: 4 ins; 0 del; 3 mod
>> Added pid of the Java process to default name of VM log file:
>> 	- old: hotspot.log
>> 	- new: hotspot_pid{pid}.log
>> It allows to avoid hotspot.log overwrite/corruption in multi-VM test scenarios and simplifies hs_err/ciReplay/hotspot.log files matching.
>> Thanks!
>> Best regards,
>> Vladimir Ivanov

More information about the hotspot-dev mailing list