Skip to content

Commit 0282ba5

Browse files
committed
cargo fmt -- --emit files
1 parent ec6ba72 commit 0282ba5

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/plan/barriers.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,7 @@ impl<S: BarrierSemantics> Barrier<S::VM> for ObjectBarrier<S> {
231231
target: Option<ObjectReference>,
232232
) {
233233
if self.log_object(src) {
234-
debug_assert!(
235-
src.is_live::<S::VM>(),
236-
"{} was logged but is not live",
237-
src
238-
);
234+
debug_assert!(src.is_live::<S::VM>(), "{} was logged but is not live", src);
239235
self.semantics
240236
.object_reference_write_slow(src, slot, target);
241237
}

src/plan/generational/gc_work.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,10 @@ impl<E: ProcessEdgesWork> GCWork<E::VM> for ProcessModBuf<E> {
145145

146146
for obj in &self.modbuf {
147147
if mmtk.get_plan().base().vm_space.in_space(*obj) {
148-
<E::VM as VMBinding>::VMObjectModel::GLOBAL_LOG_BIT_SPEC.store_atomic::<E::VM, u8>(
149-
*obj,
150-
1,
151-
None,
152-
Ordering::SeqCst,
153-
);
148+
<E::VM as VMBinding>::VMObjectModel::GLOBAL_LOG_BIT_SPEC
149+
.store_atomic::<E::VM, u8>(*obj, 1, None, Ordering::SeqCst);
154150
}
155151
}
156-
157152
}
158153
}
159154
}

0 commit comments

Comments
 (0)