8201436: Replace oop_ps_push_contents with oop_iterate and closure

Reviewed-by: sjohanss, tschatzl
This commit is contained in:
Leo Korinth 2018-10-12 12:10:34 +02:00
parent ce05c7751d
commit 4bc903d17a
16 changed files with 171 additions and 222 deletions

View file

@ -439,15 +439,6 @@ void oopDesc::pc_update_contents(ParCompactionManager* cm) {
}
// Else skip it. The TypeArrayKlass in the header never needs scavenging.
}
void oopDesc::ps_push_contents(PSPromotionManager* pm) {
Klass* k = klass();
if (!k->is_typeArray_klass()) {
// It might contain oops beyond the header, so take the virtual call.
k->oop_ps_push_contents(this, pm);
}
// Else skip it. The TypeArrayKlass in the header never needs scavenging.
}
#endif // INCLUDE_PARALLELGC
template <typename OopClosureType>