Skip to content

Commit

Permalink
cargo fmt -- --emit files
Browse files Browse the repository at this point in the history
  • Loading branch information
k-sareen committed Jul 17, 2024
1 parent ec6ba72 commit 0282ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/plan/barriers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ impl<S: BarrierSemantics> Barrier<S::VM> for ObjectBarrier<S> {
target: Option<ObjectReference>,
) {
if self.log_object(src) {
debug_assert!(
src.is_live::<S::VM>(),
"{} was logged but is not live",
src
);
debug_assert!(src.is_live::<S::VM>(), "{} was logged but is not live", src);
self.semantics
.object_reference_write_slow(src, slot, target);
}
Expand Down
9 changes: 2 additions & 7 deletions src/plan/generational/gc_work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,10 @@ impl<E: ProcessEdgesWork> GCWork<E::VM> for ProcessModBuf<E> {

for obj in &self.modbuf {
if mmtk.get_plan().base().vm_space.in_space(*obj) {
<E::VM as VMBinding>::VMObjectModel::GLOBAL_LOG_BIT_SPEC.store_atomic::<E::VM, u8>(
*obj,
1,
None,
Ordering::SeqCst,
);
<E::VM as VMBinding>::VMObjectModel::GLOBAL_LOG_BIT_SPEC
.store_atomic::<E::VM, u8>(*obj, 1, None, Ordering::SeqCst);
}
}

}
}
}
Expand Down

0 comments on commit 0282ba5

Please sign in to comment.