Fix assert in recycle_internal

This commit is contained in:
Xiaolong Peng 2026-01-16 00:03:46 -08:00
parent 75749e51c6
commit 6c1a5c4085

View File

@ -574,7 +574,7 @@ ShenandoahHeapRegion* ShenandoahHeapRegion::humongous_start_region() const {
void ShenandoahHeapRegion::recycle_internal() {
assert(_recycling.is_set() && is_trash(), "Wrong state");
assert(!is_active_alloc_region(), "Must not be active alloc region");
assert(volatile_top() == end(), "Must be");
assert(volatile_top() == nullptr, "Must be");
ShenandoahHeap* heap = ShenandoahHeap::heap();
set_top(bottom());