Skip to content

Commit 81c4eb7

Browse files
JCTyblaiddRalfJung
andcommitted
Update src/data_race.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent aaf8ca4 commit 81c4eb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_race.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ enum WriteType {
208208
Write,
209209

210210
/// Deallocate memory.
211-
/// Some races with deallocation will be missed and instead
212-
/// reported as invalid accesses of freed memory due to
213-
/// the order of checks.
211+
/// Note that when memory is deallocated first, later non-atomic accesses
212+
/// will be reported as use-after-free, not as data races.
213+
/// (Same for `Allocate` above.)
214214
Deallocate,
215215
}
216216
impl WriteType {

0 commit comments

Comments
 (0)