mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
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:
parent
2ab9ff2658
commit
b979c4ebe0
3 changed files with 18 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue