From 7c9d5eb15eda983387cbdfae60b566dfb948a13f Mon Sep 17 00:00:00 2001 From: Kunshan Wang Date: Mon, 20 Oct 2025 09:47:15 +0800 Subject: [PATCH] Fix typo A previous pull request https://github.com/mmtk/mmtk-core/pull/1400 introduced a typo. The true/false arguments to the `not_acquiring` method are inverted. Consequently it will force a GC when it is unnecessary. --- src/policy/space.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/policy/space.rs b/src/policy/space.rs index 77f5cf049a..bc016f245d 100644 --- a/src/policy/space.rs +++ b/src/policy/space.rs @@ -138,11 +138,11 @@ pub trait Space: 'static + SFT + Sync + Downcast { if let Some(addr) = self.get_new_pages_and_initialize(tls, pages, pr, pages_reserved) { addr } else { - self.not_acquiring(tls, alloc_options, pr, pages_reserved, false); + self.not_acquiring(tls, alloc_options, pr, pages_reserved, true); Address::ZERO } } else { - self.not_acquiring(tls, alloc_options, pr, pages_reserved, true); + self.not_acquiring(tls, alloc_options, pr, pages_reserved, false); Address::ZERO } }