--- old/src/hotspot/share/memory/universe.cpp 2018-08-06 13:58:47.394877002 -0700 +++ new/src/hotspot/share/memory/universe.cpp 2018-08-06 13:58:47.050864036 -0700 @@ -135,6 +135,7 @@ Array* Universe::_the_empty_int_array = NULL; Array* Universe::_the_empty_short_array = NULL; Array* Universe::_the_empty_klass_array = NULL; +Array* Universe::_the_empty_instance_klass_array = NULL; Array* Universe::_the_empty_method_array = NULL; // These variables are guarded by FullGCALot_lock. @@ -234,6 +235,7 @@ it->push(&_the_empty_int_array); it->push(&_the_empty_short_array); it->push(&_the_empty_klass_array); + it->push(&_the_empty_instance_klass_array); it->push(&_the_empty_method_array); it->push(&_the_array_interfaces_array); @@ -287,6 +289,7 @@ f->do_ptr((void**)&_the_empty_short_array); f->do_ptr((void**)&_the_empty_method_array); f->do_ptr((void**)&_the_empty_klass_array); + f->do_ptr((void**)&_the_empty_instance_klass_array); _finalizer_register_cache->serialize(f); _loader_addClass_cache->serialize(f); _pd_implies_cache->serialize(f); @@ -349,11 +352,12 @@ ClassLoaderData* null_cld = ClassLoaderData::the_null_class_loader_data(); - _the_array_interfaces_array = MetadataFactory::new_array(null_cld, 2, NULL, CHECK); - _the_empty_int_array = MetadataFactory::new_array(null_cld, 0, CHECK); - _the_empty_short_array = MetadataFactory::new_array(null_cld, 0, CHECK); - _the_empty_method_array = MetadataFactory::new_array(null_cld, 0, CHECK); - _the_empty_klass_array = MetadataFactory::new_array(null_cld, 0, CHECK); + _the_array_interfaces_array = MetadataFactory::new_array(null_cld, 2, NULL, CHECK); + _the_empty_int_array = MetadataFactory::new_array(null_cld, 0, CHECK); + _the_empty_short_array = MetadataFactory::new_array(null_cld, 0, CHECK); + _the_empty_method_array = MetadataFactory::new_array(null_cld, 0, CHECK); + _the_empty_klass_array = MetadataFactory::new_array(null_cld, 0, CHECK); + _the_empty_instance_klass_array = MetadataFactory::new_array(null_cld, 0, CHECK); } }