< prev index next >

src/share/vm/memory/universe.cpp

Print this page

        

*** 1062,1074 **** Universe::_virtual_machine_error_instance = InstanceKlass::cast(k)->allocate_instance(CHECK_false); Universe::_vm_exception = InstanceKlass::cast(k)->allocate_instance(CHECK_false); - if (!DumpSharedSpaces) { - // These are the only Java fields that are currently set during shared space dumping. - // We prefer to not handle this generally, so we always reinitialize these detail messages. Handle msg = java_lang_String::create_from_str("Java heap space", CHECK_false); java_lang_Throwable::set_message(Universe::_out_of_memory_error_java_heap, msg()); msg = java_lang_String::create_from_str("Metaspace", CHECK_false); java_lang_Throwable::set_message(Universe::_out_of_memory_error_metaspace, msg()); --- 1062,1071 ----
*** 1099,1109 **** Handle err_h = Handle(THREAD, err); java_lang_Throwable::allocate_backtrace(err_h, CHECK_false); Universe::preallocated_out_of_memory_errors()->obj_at_put(i, err_h()); } Universe::_preallocated_out_of_memory_error_avail_count = (jint)len; - } Universe::initialize_known_methods(CHECK_false); // This needs to be done before the first scavenge/gc, since // it's an input to soft ref clearing policy. --- 1096,1105 ----
< prev index next >