hotspot/src/share/vm/oops/klassVtable.cpp
changeset 9172 a4e13ccafc44
parent 8725 8c1e3dd5fe1b
child 13728 882756847a04
equal deleted inserted replaced
9171:16f9b07adedb 9172:a4e13ccafc44
   643       }
   643       }
   644     }
   644     }
   645   }
   645   }
   646 }
   646 }
   647 
   647 
       
   648 // CDS/RedefineClasses support - clear vtables so they can be reinitialized
       
   649 void klassVtable::clear_vtable() {
       
   650   for (int i = 0; i < _length; i++) table()[i].clear();
       
   651 }
       
   652 
       
   653 bool klassVtable::is_initialized() {
       
   654   return _length == 0 || table()[0].method() != NULL;
       
   655 }
       
   656 
   648 
   657 
   649 // Garbage collection
   658 // Garbage collection
   650 void klassVtable::oop_follow_contents() {
   659 void klassVtable::oop_follow_contents() {
   651   int len = length();
   660   int len = length();
   652   for (int i = 0; i < len; i++) {
   661   for (int i = 0; i < len; i++) {