mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8211447: Replace oop_pc_update_pointers with oop_iterate and closure
Reviewed-by: sjohanss, tschatzl
This commit is contained in:
parent
78fe66c3bb
commit
e898052f3b
13 changed files with 21 additions and 166 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue