< prev index next >

src/hotspot/share/cds/archiveHeapLoader.cpp

Print this page
@@ -435,14 +435,10 @@
    PatchNativePointers(Metadata** start) : _start(start) {}
  
    bool do_bit(size_t offset) {
      Metadata** p = _start + offset;
      *p = (Metadata*)(address(*p) + MetaspaceShared::relocation_delta());
-     // Currently we have only Klass pointers in heap objects.
-     // This needs to be relaxed when we support other types of native
-     // pointers such as Method.
-     assert(((Klass*)(*p))->is_klass(), "must be");
      return true;
    }
  };
  
  void ArchiveHeapLoader::patch_native_pointers() {
< prev index next >