Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/iterator.cpp @ 6738:ec98e58952b2
7197350: NPG: jvmtiHeapReferenceCallback receives incorrect reference_kind for system class roots
Summary: Fix the iteration over the system classes and report the correct reference kind.
Reviewed-by: coleenp, rbackman
author | stefank |
---|---|
date | Tue, 11 Sep 2012 14:59:23 +0200 |
parents | da91efe96a93 |
children | d0aa87f04bd5 |
comparison
equal
deleted
inserted
replaced
6737:4bfe8b33cf66 | 6738:ec98e58952b2 |
---|---|
23 */ | 23 */ |
24 | 24 |
25 #include "precompiled.hpp" | 25 #include "precompiled.hpp" |
26 #include "memory/iterator.hpp" | 26 #include "memory/iterator.hpp" |
27 #include "oops/oop.inline.hpp" | 27 #include "oops/oop.inline.hpp" |
28 | |
29 void KlassToOopClosure::do_klass(Klass* k) { | |
30 k->oops_do(_oop_closure); | |
31 } | |
28 | 32 |
29 void ObjectToOopClosure::do_object(oop obj) { | 33 void ObjectToOopClosure::do_object(oop obj) { |
30 obj->oop_iterate(_cl); | 34 obj->oop_iterate(_cl); |
31 } | 35 } |
32 | 36 |