Update src/data_race.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
aaf8ca4c77
commit
81c4eb7d74
@ -208,9 +208,9 @@ enum WriteType {
|
|||||||
Write,
|
Write,
|
||||||
|
|
||||||
/// Deallocate memory.
|
/// Deallocate memory.
|
||||||
/// Some races with deallocation will be missed and instead
|
/// Note that when memory is deallocated first, later non-atomic accesses
|
||||||
/// reported as invalid accesses of freed memory due to
|
/// will be reported as use-after-free, not as data races.
|
||||||
/// the order of checks.
|
/// (Same for `Allocate` above.)
|
||||||
Deallocate,
|
Deallocate,
|
||||||
}
|
}
|
||||||
impl WriteType {
|
impl WriteType {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user