RFR: 8262500: HostName entry in VM.info should be a new line
Thomas Stuefe
stuefe at openjdk.java.net
Sun Feb 28 06:26:41 UTC 2021
On Sun, 28 Feb 2021 03:22:50 GMT, Yasumasa Suenaga <ysuenaga 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.
-------------
Marked as reviewed by stuefe (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2763
More information about the hotspot-runtime-dev
mailing list