hotspot/src/share/vm/oops/klassVtable.cpp
changeset 46413 b0f67ec8f6be
parent 46408 70aab0c2ea8b
child 46560 388aa8d67c80
equal deleted inserted replaced
46412:92fd9825e468 46413:b0f67ec8f6be
  1012 
  1012 
  1013 // Initialize a itableMethodEntry
  1013 // Initialize a itableMethodEntry
  1014 void itableMethodEntry::initialize(Method* m) {
  1014 void itableMethodEntry::initialize(Method* m) {
  1015   if (m == NULL) return;
  1015   if (m == NULL) return;
  1016 
  1016 
       
  1017 #ifdef ASSERT
  1017   if (MetaspaceShared::is_in_shared_space((void*)&_method) &&
  1018   if (MetaspaceShared::is_in_shared_space((void*)&_method) &&
  1018      !MetaspaceShared::remapped_readwrite()) {
  1019      !MetaspaceShared::remapped_readwrite()) {
  1019     // At runtime initialize_itable is rerun as part of link_class_impl()
  1020     // At runtime initialize_itable is rerun as part of link_class_impl()
  1020     // for a shared class loaded by the non-boot loader.
  1021     // for a shared class loaded by the non-boot loader.
  1021     // The dumptime itable method entry should be the same as the runtime entry.
  1022     // The dumptime itable method entry should be the same as the runtime entry.
  1022     assert(_method == m, "sanity");
  1023     assert(_method == m, "sanity");
  1023   } else {
  1024   }
  1024     _method = m;
  1025 #endif
  1025   }
  1026   _method = m;
  1026 }
  1027 }
  1027 
  1028 
  1028 klassItable::klassItable(InstanceKlass* klass) {
  1029 klassItable::klassItable(InstanceKlass* klass) {
  1029   _klass = klass;
  1030   _klass = klass;
  1030 
  1031