src/share/vm/memory/universe.cpp

Print this page

        

*** 226,240 **** _reflect_invoke_cache->serialize(f); } void Universe::check_alignment(uintx size, uintx alignment, const char* name) { if (size < alignment || size % alignment != 0) { ! ResourceMark rm; ! stringStream st; ! st.print("Size of %s (" UINTX_FORMAT " bytes) must be aligned to " UINTX_FORMAT " bytes", name, size, alignment); ! char* error = st.as_string(); ! vm_exit_during_initialization(error); } } void initialize_basic_type_klass(Klass* k, TRAPS) { Klass* ok = SystemDictionary::Object_klass(); --- 226,237 ---- _reflect_invoke_cache->serialize(f); } void Universe::check_alignment(uintx size, uintx alignment, const char* name) { if (size < alignment || size % alignment != 0) { ! vm_exit_during_initialization( ! err_msg("Size of %s (" UINTX_FORMAT " bytes) must be aligned to " UINTX_FORMAT " bytes", name, size, alignment)); } } void initialize_basic_type_klass(Klass* k, TRAPS) { Klass* ok = SystemDictionary::Object_klass();
*** 914,924 **** } } } if (!total_rs.is_reserved()) { ! vm_exit_during_initialization(err_msg("Could not reserve enough space for object heap %d bytes", total_reserved)); return total_rs; } // Split the reserved space into main Java heap and a space for // classes so that they can be compressed using the same algorithm --- 911,921 ---- } } } if (!total_rs.is_reserved()) { ! vm_exit_during_initialization(err_msg("Could not reserve enough space for " SIZE_FORMAT "KB object heap", total_reserved/K)); return total_rs; } // Split the reserved space into main Java heap and a space for // classes so that they can be compressed using the same algorithm