mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -3430,7 +3430,7 @@ void InstanceKlass::collect_statistics(KlassSizeStats *sz) const {
|
|||
|
||||
// Verification
|
||||
|
||||
class VerifyFieldClosure: public OopClosure {
|
||||
class VerifyFieldClosure: public BasicOopIterateClosure {
|
||||
protected:
|
||||
template <class T> void do_oop_work(T* p) {
|
||||
oop obj = RawAccess<>::oop_load(p);
|
||||
|
@ -3578,7 +3578,7 @@ void InstanceKlass::verify_on(outputStream* st) {
|
|||
void InstanceKlass::oop_verify_on(oop obj, outputStream* st) {
|
||||
Klass::oop_verify_on(obj, st);
|
||||
VerifyFieldClosure blk;
|
||||
obj->oop_iterate_no_header(&blk);
|
||||
obj->oop_iterate(&blk);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue