--- old/src/hotspot/share/oops/constantPool.cpp 2018-08-15 20:40:12.284469960 -0400 +++ new/src/hotspot/share/oops/constantPool.cpp 2018-08-15 20:40:10.908390695 -0400 @@ -296,6 +296,11 @@ } oop archived = MetaspaceShared::archive_heap_object(rr, THREAD); + // If the resolved references array is not archived (too large), + // the 'archived' object is NULL. No need to explicitly check + // the return value of archive_heap_object here. At runtime, the + // resolved references will be created using the normal process + // when there is no archived value. _cache->set_archived_references(archived); set_resolved_references(NULL); }