changeset 23186:9396c6fb571b

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
author mseledtsov
date Wed, 05 Mar 2014 12:31:09 -0500
parents a2143156a0a0
children 1114c7f39954 d329b23d53a5 be6bd2c1f2a8
files hotspot/src/share/vm/memory/filemap.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;