Skip to content

Commit

Permalink
Merge #210
Browse files Browse the repository at this point in the history
210: Synchronize on compare_exchange failure in create_hashtable r=Amanieu a=tmiasko



Co-authored-by: Tomasz Miąsko <tomasz.miasko@gmail.com>
  • Loading branch information
bors[bot] and tmiasko authored Jan 22, 2020
2 parents 8714b64 + a02c309 commit fa294cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/parking_lot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ fn create_hashtable() -> &'static HashTable {
let table = match HASHTABLE.compare_exchange(
ptr::null_mut(),
new_table,
Ordering::Release,
Ordering::Relaxed,
Ordering::AcqRel,
Ordering::Acquire,
) {
Ok(_) => new_table,
Err(old_table) => {
Expand Down

0 comments on commit fa294cd

Please sign in to comment.