Skip to content

Commit 4c357f0

Browse files
committed
Code changes
1 parent deb07ed commit 4c357f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stress/src/throughput.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ impl<'a> UnsafeSlice<'a> {
150150
slice: unsafe { &*ptr },
151151
}
152152
}
153-
153+
154+
// SAFETY: It's assumed that no two threads will write to the same index at the same time
154155
#[inline(always)]
155156
unsafe fn increment(&self, i: usize) {
156157
let value = self.slice[i].get();

0 commit comments

Comments
 (0)