mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +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
|
@ -128,6 +128,13 @@ class KlassClosure : public Closure {
|
|||
virtual void do_klass(Klass* k) = 0;
|
||||
};
|
||||
|
||||
class KlassToOopClosure : public KlassClosure {
|
||||
OopClosure* _oop_closure;
|
||||
public:
|
||||
KlassToOopClosure(OopClosure* oop_closure) : _oop_closure(oop_closure) {}
|
||||
virtual void do_klass(Klass* k);
|
||||
};
|
||||
|
||||
// ObjectClosure is used for iterating through an object space
|
||||
|
||||
class ObjectClosure : public Closure {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue