--- old/src/hotspot/share/memory/metaspaceShared.cpp 2018-10-23 13:18:21.720493733 -0700 +++ new/src/hotspot/share/memory/metaspaceShared.cpp 2018-10-23 13:18:21.357459551 -0700 @@ -1650,7 +1650,7 @@ // enable this when running real apps. SystemDictionary::remove_classes_in_error_state(); } else { - tty->print_cr("Please remove the unverifiable classes from your class list and try again"); + log_error(cds)("Please remove the unverifiable classes from your class list and try again"); exit(1); } } @@ -2029,14 +2029,14 @@ if (PrintSharedArchiveAndExit) { if (PrintSharedDictionary) { - tty->print_cr("\nShared classes:\n"); + log_info(cds)("\nShared classes:\n"); SystemDictionary::print_shared(tty); } if (_archive_loading_failed) { - tty->print_cr("archive is invalid"); + log_error(cds)("archive is invalid"); vm_exit(1); } else { - tty->print_cr("archive is valid"); + log_info(cds)("archive is valid"); vm_exit(0); } }