From a146ffa7d9a20a31457608d93372771fcacc2e9a Mon Sep 17 00:00:00 2001 From: luc-blaeser Date: Fri, 27 Jan 2023 11:36:10 +0100 Subject: [PATCH] Bug fix --- .../src/gc/incremental/phases/evacuation_increment.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rts/motoko-rts/src/gc/incremental/phases/evacuation_increment.rs b/rts/motoko-rts/src/gc/incremental/phases/evacuation_increment.rs index 18c4eb71531..5a04572d8dd 100644 --- a/rts/motoko-rts/src/gc/incremental/phases/evacuation_increment.rs +++ b/rts/motoko-rts/src/gc/incremental/phases/evacuation_increment.rs @@ -57,10 +57,10 @@ impl<'a, M: Memory + 'a> EvacuationIncrement<'a, M> { let partition = iterator.current_partition().unwrap(); if partition.to_be_evacuated() { self.evacuate_partition(partition); - if self.time.is_over() { - // Resume evacuation of the same partition later. - break; - } + } + if self.time.is_over() { + // Resume potential evacuation of the same partition later. + break; } iterator.next_partition(); }