mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8205607: Use oop_iterate instead of oop_iterate_no_header
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
35a9c52708
commit
5012044e63
15 changed files with 22 additions and 55 deletions
|
@ -463,18 +463,6 @@ void oopDesc::oop_iterate_backwards(OopClosureType* cl) {
|
|||
OopIteratorClosureDispatch::oop_oop_iterate_backwards(cl, this, klass());
|
||||
}
|
||||
|
||||
int oopDesc::oop_iterate_no_header(OopClosure* blk) {
|
||||
// The NoHeaderExtendedOopClosure wraps the OopClosure and proxies all
|
||||
// the do_oop calls, but turns off all other features in OopIterateClosure.
|
||||
NoHeaderExtendedOopClosure cl(blk);
|
||||
return oop_iterate_size(&cl);
|
||||
}
|
||||
|
||||
int oopDesc::oop_iterate_no_header(OopClosure* blk, MemRegion mr) {
|
||||
NoHeaderExtendedOopClosure cl(blk);
|
||||
return oop_iterate_size(&cl, mr);
|
||||
}
|
||||
|
||||
bool oopDesc::is_instanceof_or_null(oop obj, Klass* klass) {
|
||||
return obj == NULL || obj->klass()->is_subtype_of(klass);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue