Skip to content

Commit

Permalink
Merge #596
Browse files Browse the repository at this point in the history
596: Fix a bug in seq_lock_wide (closes #595) r=jeehoonkang a=jeehoonkang

It's quite an embarrassing bug by me...

Co-authored-by: Jeehoon Kang <[email protected]>
  • Loading branch information
bors[bot] and jeehoonkang authored Nov 12, 2020
2 parents 03ba964 + 4b1ce50 commit 9c3a8a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crossbeam-utils/src/atomic/seq_lock_wide.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use core::mem;
use core::sync::atomic::{self, AtomicUsize, Ordering};

use crate::Backoff;
Expand Down Expand Up @@ -110,6 +111,7 @@ impl SeqLockWriteGuard {
#[inline]
pub fn abort(self) {
self.lock.state_lo.store(self.state_lo, Ordering::Release);
mem::forget(self);
}
}

Expand Down

0 comments on commit 9c3a8a8

Please sign in to comment.