Add virtual back for release_alloc_regions and reserve_alloc_regions to fix link error

This commit is contained in:
Xiaolong Peng 2026-01-13 11:19:17 -08:00
parent 5a9e1088cc
commit 73e6e8da67

View File

@ -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();
};
/*