< prev index next >

src/share/vm/oops/klassVtable.cpp

Print this page

*** 1012,1030 **** // Initialize a itableMethodEntry void itableMethodEntry::initialize(Method* m) { if (m == NULL) return; 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; } } klassItable::klassItable(InstanceKlass* klass) { _klass = klass; --- 1012,1031 ---- // 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"); } + #endif + _method = m; } klassItable::klassItable(InstanceKlass* klass) { _klass = klass;
< prev index next >