--- old/src/hotspot/share/memory/filemap.cpp 2019-09-11 09:13:25.491225275 -0700 +++ new/src/hotspot/share/memory/filemap.cpp 2019-09-11 09:13:24.979206476 -0700 @@ -459,7 +459,7 @@ if (e->is_dir()) { const char* path = e->name(); if (!os::dir_is_empty(path)) { - tty->print_cr("Error: non-empty directory '%s'", path); + log_error(cds)("Error: non-empty directory '%s'", path); has_nonempty_dir = true; } }