8033990: Add message to verbose output to indicate when JVM was unable to use shared archive (with -Xshare:auto)
authormseledtsov
Wed, 05 Mar 2014 12:31:09 -0500
changeset 23186 9396c6fb571b
parent 23185 a2143156a0a0
child 23222 1114c7f39954
child 23228 d329b23d53a5
child 23442 be6bd2c1f2a8
8033990: Add message to verbose output to indicate when JVM was unable to use shared archive (with -Xshare:auto) Summary: Added message to indicate when sharing was attempted but failed Reviewed-by: coleenp, ctornqvi
hotspot/src/share/vm/memory/filemap.cpp
--- a/hotspot/src/share/vm/memory/filemap.cpp	Mon Mar 03 11:54:35 2014 +0100
+++ b/hotspot/src/share/vm/memory/filemap.cpp	Wed Mar 05 12:31:09 2014 -0500
@@ -78,6 +78,10 @@
   va_start(ap, msg);
   if (RequireSharedSpaces) {
     fail(msg, ap);
+  } else {
+    if (PrintSharedSpaces) {
+      tty->print_cr("UseSharedSpaces: %s", msg);
+    }
   }
   va_end(ap);
   UseSharedSpaces = false;