--- old/src/hotspot/share/memory/heapInspection.cpp 2020-01-14 13:32:53.048355883 -0500 +++ new/src/hotspot/share/memory/heapInspection.cpp 2020-01-14 13:32:52.716347672 -0500 @@ -28,6 +28,8 @@ #include "classfile/moduleEntry.hpp" #include "classfile/systemDictionary.hpp" #include "gc/shared/collectedHeap.hpp" +#include "logging/log.hpp" +#include "logging/logTag.hpp" #include "memory/heapInspection.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.hpp" @@ -517,9 +519,9 @@ // populate table with object allocation info size_t missed_count = populate_table(&cit); if (missed_count != 0) { - st->print_cr("WARNING: Ran out of C-heap; undercounted " SIZE_FORMAT - " total instances in data below", - missed_count); + log_info(gc, classhisto)("WARNING: Ran out of C-heap; undercounted " SIZE_FORMAT + " total instances in data below", + missed_count); } // Sort and print klass instance info