src/hotspot/share/memory/metaspace.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/hotspot/share/memory/metaspace.cpp

src/hotspot/share/memory/metaspace.cpp

Print this page

        

*** 1289,1301 **** if (result == NULL) { if (DumpSharedSpaces) { // CDS dumping keeps loading classes, so if we hit an OOM we probably will keep hitting OOM. // We should abort to avoid generating a potentially bad archive. ! tty->print_cr("Failed allocating metaspace object type %s of size " SIZE_FORMAT ". CDS dump aborted.", MetaspaceObj::type_name(type), word_size * BytesPerWord); ! tty->print_cr("Please increase MaxMetaspaceSize (currently " SIZE_FORMAT " bytes).", MaxMetaspaceSize); vm_exit(1); } report_metadata_oome(loader_data, word_size, type, mdtype, THREAD); assert(HAS_PENDING_EXCEPTION, "sanity"); return NULL; --- 1289,1301 ---- if (result == NULL) { if (DumpSharedSpaces) { // CDS dumping keeps loading classes, so if we hit an OOM we probably will keep hitting OOM. // We should abort to avoid generating a potentially bad archive. ! log_error(cds)("Failed allocating metaspace object type %s of size " SIZE_FORMAT ". CDS dump aborted.", MetaspaceObj::type_name(type), word_size * BytesPerWord); ! log_error(cds)("Please increase MaxMetaspaceSize (currently " SIZE_FORMAT " bytes).", MaxMetaspaceSize); vm_exit(1); } report_metadata_oome(loader_data, word_size, type, mdtype, THREAD); assert(HAS_PENDING_EXCEPTION, "sanity"); return NULL;
src/hotspot/share/memory/metaspace.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File