equal
deleted
inserted
replaced
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++) { |