summaryrefslogtreecommitdiff
path: root/standalone/primary64.h
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/primary64.h')
-rw-r--r--standalone/primary64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/standalone/primary64.h b/standalone/primary64.h
index b954b7c0bf2..39248376eaa 100644
--- a/standalone/primary64.h
+++ b/standalone/primary64.h
@@ -845,6 +845,9 @@ private:
Region->AllocatedUser -
(Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks) * BlockSize;
+ if (UNLIKELY(BytesInFreeList == 0))
+ return 0;
+
bool MaySkip = false;
// Always update `BytesInFreeListAtLastCheckpoint` with the smallest value