From 378427cf082102e6611500d6185e3199acdbb344 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 16 Oct 2024 14:02:20 -0400 Subject: [PATCH] Fix off-by-one error --- gc/mmtk/src/weak_proc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/mmtk/src/weak_proc.rs b/gc/mmtk/src/weak_proc.rs index 4e5da7c1dab95b..11f7f5abbf3881 100644 --- a/gc/mmtk/src/weak_proc.rs +++ b/gc/mmtk/src/weak_proc.rs @@ -83,7 +83,7 @@ impl WeakProcessor { worker.add_work(WorkBucketStage::Prepare, UpdateFinalizerObjIdTables); let global_tables_count = (crate::upcalls().global_tables_count)(); - let work_packets = (0..(global_tables_count - 1)) + let work_packets = (0..global_tables_count) .map(|i| { Box::new(UpdateGlobalTables { idx: i }) as _ })