RFR: 8262500: HostName entry in VM.info should be a new line

Yasumasa Suenaga ysuenaga at openjdk.java.net
Sun Feb 28 08:14:56 UTC 2021


On Sun, 28 Feb 2021 06:23:36 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> We can get host name from VM.info dcmd (and also hs_err log) on fastdebug build as below. It affects (fast)debug build for Windows only.
>> 
>> --------------- S Y S T E M ---------------
>> 
>> HostName: Xelvis OS:
>>  Windows 10 , 64 bit Build 19041 (10.0.19041.804)
>> OS uptime: 1 days 1:33 hours
>> Hyper-V role detected
>> 
>> `OS` label is available within HostName entry. It should be in a new line.
>> 
>> After this change, we can get VM.info output as below:
>> 
>> ---------------  S Y S T E M  ---------------
>> 
>> HostName: Xelvis
>> OS:
>>  Windows 10 , 64 bit Build 19041 (10.0.19041.804)
>> OS uptime: 1 days 1:44 hours
>> Hyper-V role detected
>
> Looks fine to me. I was surprised to see that we print out hostnames only in debug versions until I realized that this may be a security feature.

Thanks @tstuefe !

> I was surprised to see that we print out hostnames only in debug versions until I realized that this may be a security feature.

[Comment in JDK-8056930](https://bugs.openjdk.java.net/browse/JDK-8056930?focusedCommentId=13546917&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13546917) says the reason why hostname is available in debug build only. I agree with that mostly, but TransmitErrorReport has been obsoleted by the [JDK-8209856](https://bugs.openjdk.java.net/browse/JDK-8209856).

-------------

PR: https://git.openjdk.java.net/jdk/pull/2763


More information about the hotspot-runtime-dev mailing list