mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8201436: Replace oop_ps_push_contents with oop_iterate and closure
Reviewed-by: sjohanss, tschatzl
This commit is contained in:
parent
ce05c7751d
commit
4bc903d17a
16 changed files with 171 additions and 222 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue