▲ | int_19h 5 days ago | |||||||||||||||||||||||||
Yes, but even so you will never see e.g. an invalid pointer value as the result of a torn memory write. Basically, no matter what you do with threads in Java, it will not segfault. TFA's point is that (safe) Rust is also like that, but achieves it by restricting all cases where a torn write could be observed through its type system instead of VM's memory model. | ||||||||||||||||||||||||||
▲ | dontlaugh 5 days ago | parent [-] | |||||||||||||||||||||||||
More specifically, Rust prevents data races. | ||||||||||||||||||||||||||
|