src/hotspot/share/memory/metaspace.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/share/memory/metaspace.cpp	Thu Mar  8 10:24:37 2018
--- new/src/hotspot/share/memory/metaspace.cpp	Thu Mar  8 10:24:37 2018

*** 3943,3952 **** --- 3943,3958 ---- // Try to allocate metadata. MetaWord* result = loader_data->metaspace_non_null()->allocate(word_size, mdtype); if (result == NULL) { + if (DumpSharedSpaces && THREAD->is_VM_thread()) { + tty->print_cr("Failed allocating metaspace object type %s of size " SIZE_FORMAT ". CDS dump aborted.", + MetaspaceObj::type_name(type), word_size * BytesPerWord); + vm_exit(1); + } + tracer()->report_metaspace_allocation_failure(loader_data, word_size, type, mdtype); // Allocation failed. if (is_init_completed()) { // Only start a GC if the bootstrapping has completed.

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