< prev index next >

src/share/vm/oops/klassVtable.cpp

Print this page

@@ -1012,19 +1012,20 @@
 
 // Initialize a itableMethodEntry
 void itableMethodEntry::initialize(Method* m) {
   if (m == NULL) return;
 
+#ifndef PRODUCT
   if (MetaspaceShared::is_in_shared_space((void*)&_method) &&
      !MetaspaceShared::remapped_readwrite()) {
     // At runtime initialize_itable is rerun as part of link_class_impl()
     // for a shared class loaded by the non-boot loader.
     // The dumptime itable method entry should be the same as the runtime entry.
     assert(_method == m, "sanity");
-  } else {
-    _method = m;
   }
+#endif
+  _method = m;
 }
 
 klassItable::klassItable(InstanceKlass* klass) {
   _klass = klass;
 
< prev index next >