From 4fc01e243dff1951b1379adc41cabea385d87e70 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 13 Sep 2024 16:49:28 +0200 Subject: [PATCH] Fixing the invalid popping. --- backends/v3/src/queue.rs | 2 +- backends/v3/src/radix.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/v3/src/queue.rs b/backends/v3/src/queue.rs index fc6c5390..f8123b57 100644 --- a/backends/v3/src/queue.rs +++ b/backends/v3/src/queue.rs @@ -364,7 +364,7 @@ impl State { // Add it back to the front tracing::debug!("Over budget: not enough free blocks"); self.entries.push_front((id, entry)); - break; + continue; } Some(block_allocation) => { tracing::debug!("Allocation: {block_allocation:?}"); diff --git a/backends/v3/src/radix.rs b/backends/v3/src/radix.rs index 9b117456..90d3b033 100644 --- a/backends/v3/src/radix.rs +++ b/backends/v3/src/radix.rs @@ -97,6 +97,7 @@ impl Allocator for RadixAllocator { self.cache_blocks .decref(prefix_node) .expect("Failed to decrement refcount"); + tracing::debug!("Cannot allocate {:?}", self.cache_blocks); return None; } }