src/share/vm/oops/klassVtable.cpp

changeset 2777
8ce625481709
parent 2658
c7f3d0b4570f
child 4037
da91efe96a93
equal deleted inserted replaced
2776:a534c140904e 2777:8ce625481709
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++) {

mercurial