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