Merge
authorminqi
Tue, 09 Sep 2014 18:56:24 +0000
changeset 26570 8a96177975bc
parent 26568 65dbacf42e6d (current diff)
parent 26569 5fcbc13c071c (diff)
child 26575 9d01d41f1aa7
child 26680 1f181bd352ce
Merge
--- a/hotspot/src/os/posix/vm/os_posix.cpp	Tue Sep 09 09:48:42 2014 -0700
+++ b/hotspot/src/os/posix/vm/os_posix.cpp	Tue Sep 09 18:56:24 2014 +0000
@@ -215,6 +215,9 @@
   struct utsname name;
   uname(&name);
   st->print("%s ", name.sysname);
+#ifdef ASSERT
+  st->print("%s ", name.nodename);
+#endif
   st->print("%s ", name.release);
   st->print("%s ", name.version);
   st->print("%s", name.machine);
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Tue Sep 09 09:48:42 2014 -0700
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Tue Sep 09 18:56:24 2014 +0000
@@ -1588,8 +1588,17 @@
 }
 
 void os::print_os_info(outputStream* st) {
-  st->print("OS:");
-
+#ifdef ASSERT
+  char buffer[1024];
+  DWORD size = sizeof(buffer);
+  st->print(" HostName: ");
+  if (GetComputerNameEx(ComputerNameDnsHostname, buffer, &size)) {
+    st->print("%s", buffer);
+  } else {
+    st->print("N/A");
+  }
+#endif
+  st->print(" OS:");
   os::win32::print_windows_version(st);
 }