8211447: Replace oop_pc_update_pointers with oop_iterate and closure

Reviewed-by: sjohanss, tschatzl
This commit is contained in:
Leo Korinth 2018-10-12 12:14:01 +02:00
parent 78fe66c3bb
commit e898052f3b
13 changed files with 21 additions and 166 deletions

View file

@ -426,18 +426,6 @@ void oopDesc::incr_age() {
}
}
#if INCLUDE_PARALLELGC
void oopDesc::pc_update_contents(ParCompactionManager* cm) {
Klass* k = klass();
if (!k->is_typeArray_klass()) {
// It might contain oops beyond the header, so take the virtual call.
k->oop_pc_update_pointers(this, cm);
}
// Else skip it. The TypeArrayKlass in the header never needs scavenging.
}
#endif // INCLUDE_PARALLELGC
template <typename OopClosureType>
void oopDesc::oop_iterate(OopClosureType* cl) {
OopIteratorClosureDispatch::oop_oop_iterate(cl, this, klass());