From 73e6e8da67789448e8c5ea25d8b138bdbb5b88c8 Mon Sep 17 00:00:00 2001 From: Xiaolong Peng Date: Tue, 13 Jan 2026 11:19:17 -0800 Subject: [PATCH] Add virtual back for release_alloc_regions and reserve_alloc_regions to fix link error --- src/hotspot/share/gc/shenandoah/shenandoahAllocator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/shenandoah/shenandoahAllocator.hpp b/src/hotspot/share/gc/shenandoah/shenandoahAllocator.hpp index 9438320fb14..ca5981305e8 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahAllocator.hpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahAllocator.hpp @@ -129,12 +129,12 @@ public: // Caller must hold the heap lock at safepoint. This causes all directly allocatable regions to be placed into // the appropriate ShenandoahFreeSet partition. // Collector calls this in preparation for choosing a collection set and/or rebuilding the freeset. - void release_alloc_regions(); + virtual void release_alloc_regions(); // Caller must hold the heap lock at safepoint. This causes us to set aside N regions as directly allocatable // by removing these regions from the relevant ShenandoahFreeSet partitions. // Collector calls this after rebuilding the freeset. - void reserve_alloc_regions(); + virtual void reserve_alloc_regions(); }; /*