From 0282ba5a8cd602e1f3aaa43669fe78537b64783b Mon Sep 17 00:00:00 2001 From: Kunal Sareen Date: Wed, 17 Jul 2024 12:58:08 +0000 Subject: [PATCH] cargo fmt -- --emit files --- src/plan/barriers.rs | 6 +----- src/plan/generational/gc_work.rs | 9 ++------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/plan/barriers.rs b/src/plan/barriers.rs index f50756e550..a0cc8bae51 100644 --- a/src/plan/barriers.rs +++ b/src/plan/barriers.rs @@ -231,11 +231,7 @@ impl Barrier for ObjectBarrier { target: Option, ) { if self.log_object(src) { - debug_assert!( - src.is_live::(), - "{} was logged but is not live", - src - ); + debug_assert!(src.is_live::(), "{} was logged but is not live", src); self.semantics .object_reference_write_slow(src, slot, target); } diff --git a/src/plan/generational/gc_work.rs b/src/plan/generational/gc_work.rs index 6d82e13b50..6d5ca4993e 100644 --- a/src/plan/generational/gc_work.rs +++ b/src/plan/generational/gc_work.rs @@ -145,15 +145,10 @@ impl GCWork for ProcessModBuf { for obj in &self.modbuf { if mmtk.get_plan().base().vm_space.in_space(*obj) { - ::VMObjectModel::GLOBAL_LOG_BIT_SPEC.store_atomic::( - *obj, - 1, - None, - Ordering::SeqCst, - ); + ::VMObjectModel::GLOBAL_LOG_BIT_SPEC + .store_atomic::(*obj, 1, None, Ordering::SeqCst); } } - } } }