< prev index next >
src/hotspot/share/memory/metaspace.cpp
Print this page
rev 50985 : 8206977: Minor improvements of runtime code.
Reviewed-by: coleenp, lfoltan
*** 1258,1268 ****
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, CHECK_NULL);
}
// Zero initialize.
Copy::fill_to_words((HeapWord*)result, word_size, 0);
--- 1258,1270 ----
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;
}
// Zero initialize.
Copy::fill_to_words((HeapWord*)result, word_size, 0);
< prev index next >