2 ms·
Rust does prevent memory race conditions, but of course, only within the address space of the process and only for memory read and written to exclusively by rus
by eptcyka 4y ago
Rust does prevent memory race conditions, but of course, only within the address space of the process and only for memory read and written to exclusively by rust code.
- progval 4y agoFor example, there is this (pure safe Rust) code: https://github.com/ben0x539/totally-safe-transmute/blob/main/src/lib.rs https://github.com/ben0x539/totally-safe-transmute/blob/main... which accesses external resources (/proc/self/mem) in order to violate the safety guarantees.