Skip to content

Commit

Permalink
Remove redundant collecting unsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
powergee committed Sep 13, 2023
1 parent da5169c commit 655c8cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crossbeam-epoch/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,7 @@ impl Global {
&|sealed_bag: &SealedBag| sealed_bag.is_expired(global_epoch),
guard,
) {
None => {
collecting.set(false);
break;
}
None => break,
Some(sealed_bag) => {
GLOBAL_GARBAGE_COUNT.fetch_sub(sealed_bag._bag.len, Ordering::AcqRel);
drop(sealed_bag);
Expand Down

0 comments on commit 655c8cc

Please sign in to comment.