From 58cc84a3cc1641cb4a7bba97a0fe04e3542a1533 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Wed, 18 Oct 2023 11:06:26 +0900 Subject: [PATCH] update 654e603e753019f804100e796c556d7aa8078804 --- homework/src/list_set/optimistic_fine_grained.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework/src/list_set/optimistic_fine_grained.rs b/homework/src/list_set/optimistic_fine_grained.rs index 9ca9b0ec36..0375aeb9d9 100644 --- a/homework/src/list_set/optimistic_fine_grained.rs +++ b/homework/src/list_set/optimistic_fine_grained.rs @@ -57,7 +57,7 @@ impl OptimisticFineGrainedListSet { fn head<'g>(&'g self, guard: &'g Guard) -> Cursor<'g, T> { let prev = unsafe { self.head.read_lock() }; - let curr = prev.load(Ordering::Relaxed, guard); + let curr = prev.load(Ordering::SeqCst, guard); Cursor { prev, curr } } }