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
--- 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;