|
|
|
|
|
by elcritch
1383 days ago
|
|
Robocat is probably correct. Rust doesn't prevent race conditions, just data races. For example a Rust CVE due to a race condition: https://www.cybersecurity-help.cz/vdb/SB2022012101 This CVE appears to be due to a race condition despite using atomics, so likely this could've happened in Rust code. Really to implement this sort of GC I'd wager that unsafe rust would also be required unless an entirely different algorithm was used. |
|
[1] https://itsallaboutthebit.com/arc-mutex/
[2] https://stackoverflow.com/questions/5095781/how-pthread-mute...
[3] https://lwn.net/Articles/779472/