--- old/src/share/vm/memory/filemap.cpp 2014-12-04 04:02:51.875769825 -0800 +++ new/src/share/vm/memory/filemap.cpp 2014-12-04 04:02:51.763765705 -0800 @@ -93,16 +93,12 @@ } else { if (RequireSharedSpaces) { fail(msg, ap); - } else { - if (PrintSharedSpaces) { - tty->print_cr("UseSharedSpaces: %s", msg); - } } + UseSharedSpaces = false; + assert(current_info() != NULL, "singleton must be registered"); + current_info()->close(); } va_end(ap); - UseSharedSpaces = false; - assert(current_info() != NULL, "singleton must be registered"); - current_info()->close(); } // Fill in the fileMapInfo structure with data about this VM instance.