--- old/src/hotspot/share/memory/universe.cpp 2018-08-01 22:34:07.616139693 -0700 +++ new/src/hotspot/share/memory/universe.cpp 2018-08-01 22:34:06.616101660 -0700 @@ -513,8 +513,11 @@ // that the number of objects allocated at this point is very small. assert(SystemDictionary::Class_klass_loaded(), "java.lang.Class should be loaded"); HandleMark hm(THREAD); - // Cache the start of the static fields - InstanceMirrorKlass::init_offset_of_static_fields(); + + if (!UseSharedSpaces) { + // Cache the start of the static fields + InstanceMirrorKlass::init_offset_of_static_fields(); + } GrowableArray * list = java_lang_Class::fixup_mirror_list(); int list_length = list->length();