7197350: NPG: jvmtiHeapReferenceCallback receives incorrect reference_kind for system class roots

Fix the iteration over the system classes and report the correct reference kind.

Reviewed-by: coleenp, rbackman
This commit is contained in:
Stefan Karlsson 2012-09-11 14:59:23 +02:00
parent 2ab9ff2658
commit b979c4ebe0
3 changed files with 18 additions and 4 deletions

View file

@ -26,6 +26,10 @@
#include "memory/iterator.hpp"
#include "oops/oop.inline.hpp"
void KlassToOopClosure::do_klass(Klass* k) {
k->oops_do(_oop_closure);
}
void ObjectToOopClosure::do_object(oop obj) {
obj->oop_iterate(_cl);
}