From 55c117ed6b08399d897177d76bea0eb41abd62f7 Mon Sep 17 00:00:00 2001 From: William Kemper Date: Wed, 11 Dec 2024 14:05:11 -0800 Subject: [PATCH] Add shenandoah generational heap to type DB --- .../share/classes/sun/jvm/hotspot/memory/Universe.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Universe.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Universe.java index f2f5422ad04..2d847c11ecf 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Universe.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Universe.java @@ -35,6 +35,7 @@ import sun.jvm.hotspot.gc.parallel.ParallelScavengeHeap; import sun.jvm.hotspot.gc.serial.SerialHeap; import sun.jvm.hotspot.gc.shared.CollectedHeap; +import sun.jvm.hotspot.gc.shenandoah.ShenandoahGenerationalHeap; import sun.jvm.hotspot.gc.shenandoah.ShenandoahHeap; import sun.jvm.hotspot.gc.x.XCollectedHeap; import sun.jvm.hotspot.gc.z.ZCollectedHeap; @@ -90,6 +91,7 @@ private static synchronized void initialize(TypeDataBase db) { addHeapTypeIfInDB(db, XCollectedHeap.class); addHeapTypeIfInDB(db, ZCollectedHeap.class); addHeapTypeIfInDB(db, ShenandoahHeap.class); + addHeapTypeIfInDB(db, ShenandoahGenerationalHeap.class); UniverseExt.initialize(heapConstructor); }