equal
deleted
inserted
replaced
4846 |
4846 |
4847 // Try to allocate metadata. |
4847 // Try to allocate metadata. |
4848 MetaWord* result = loader_data->metaspace_non_null()->allocate(word_size, mdtype); |
4848 MetaWord* result = loader_data->metaspace_non_null()->allocate(word_size, mdtype); |
4849 |
4849 |
4850 if (result == NULL) { |
4850 if (result == NULL) { |
|
4851 if (DumpSharedSpaces && THREAD->is_VM_thread()) { |
|
4852 tty->print_cr("Failed allocating metaspace object type %s of size " SIZE_FORMAT ". CDS dump aborted.", |
|
4853 MetaspaceObj::type_name(type), word_size * BytesPerWord); |
|
4854 vm_exit(1); |
|
4855 } |
|
4856 |
4851 tracer()->report_metaspace_allocation_failure(loader_data, word_size, type, mdtype); |
4857 tracer()->report_metaspace_allocation_failure(loader_data, word_size, type, mdtype); |
4852 |
4858 |
4853 // Allocation failed. |
4859 // Allocation failed. |
4854 if (is_init_completed()) { |
4860 if (is_init_completed()) { |
4855 // Only start a GC if the bootstrapping has completed. |
4861 // Only start a GC if the bootstrapping has completed. |