src/hotspot/share/oops/constantPool.cpp
changeset 51425 4e9667589c43
parent 51338 aa3bfacc912c
child 51444 3e5d28e6de32
--- a/src/hotspot/share/oops/constantPool.cpp	Thu Aug 16 10:20:00 2018 -0700
+++ b/src/hotspot/share/oops/constantPool.cpp	Thu Aug 16 17:29:22 2018 -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);
   }