Currently tty->print is commonly used for printing out error messages like the following in CDS code. They can be converted to use log_error().
void MetaspaceShared::link_and_cleanup_shared_classes(TRAPS) {
...
tty->print_cr("Please remove the unverifiable classes from your class list and try again");
exit(1);
void MetaspaceShared::link_and_cleanup_shared_classes(TRAPS) {
...
tty->print_cr("Please remove the unverifiable classes from your class list and try again");
exit(1);