From eb9badd8a4ea6dca834525fd49429e2ce771a76c Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Mon, 2 Jun 2025 08:57:16 +0000 Subject: [PATCH] 8358169: Shenandoah/JVMCI: Export GC state constants Reviewed-by: dnsimon, shade --- src/hotspot/share/jvmci/vmStructs_jvmci.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hotspot/share/jvmci/vmStructs_jvmci.cpp b/src/hotspot/share/jvmci/vmStructs_jvmci.cpp index cf9e6ed46d5..4302c0ce6ad 100644 --- a/src/hotspot/share/jvmci/vmStructs_jvmci.cpp +++ b/src/hotspot/share/jvmci/vmStructs_jvmci.cpp @@ -54,6 +54,7 @@ #include "gc/z/zThreadLocalData.hpp" #endif #if INCLUDE_SHENANDOAHGC +#include "gc/shenandoah/shenandoahHeap.hpp" #include "gc/shenandoah/shenandoahRuntime.hpp" #include "gc/shenandoah/shenandoahThreadLocalData.hpp" #endif @@ -969,6 +970,13 @@ declare_constant_with_value("ShenandoahThreadLocalData::satb_mark_queue_index_offset", in_bytes(ShenandoahThreadLocalData::satb_mark_queue_index_offset())) \ declare_constant_with_value("ShenandoahThreadLocalData::satb_mark_queue_buffer_offset", in_bytes(ShenandoahThreadLocalData::satb_mark_queue_buffer_offset())) \ declare_constant_with_value("ShenandoahThreadLocalData::card_table_offset", in_bytes(ShenandoahThreadLocalData::card_table_offset())) \ + declare_constant_with_value("ShenandoahHeap::HAS_FORWARDED", ShenandoahHeap::HAS_FORWARDED) \ + declare_constant_with_value("ShenandoahHeap::MARKING", ShenandoahHeap::MARKING) \ + declare_constant_with_value("ShenandoahHeap::EVACUATION", ShenandoahHeap::EVACUATION) \ + declare_constant_with_value("ShenandoahHeap::UPDATE_REFS", ShenandoahHeap::UPDATE_REFS) \ + declare_constant_with_value("ShenandoahHeap::WEAK_ROOTS", ShenandoahHeap::WEAK_ROOTS) \ + declare_constant_with_value("ShenandoahHeap::YOUNG_MARKING", ShenandoahHeap::YOUNG_MARKING) \ + declare_constant_with_value("ShenandoahHeap::OLD_MARKING", ShenandoahHeap::OLD_MARKING) \ #endif