# HG changeset patch
# User minqi
# Date 1410288984 0
# Node ID 8a96177975bcad4527680357f2add89706f2b188
# Parent  65dbacf42e6d604481ac3f541c8b08b2dc376f14# Parent  5fcbc13c071c6bfc22d36a5a854f413a729227b4
Merge

diff -r 65dbacf42e6d -r 8a96177975bc hotspot/src/os/posix/vm/os_posix.cpp
--- 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);
diff -r 65dbacf42e6d -r 8a96177975bc hotspot/src/os/windows/vm/os_windows.cpp
--- 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);
 }