Skip to content

Commit

Permalink
Fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 16, 2024
1 parent 84abb64 commit 378427c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc/mmtk/src/weak_proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _
})
Expand Down

0 comments on commit 378427c

Please sign in to comment.