zlacker

[parent] [thread] 2 comments
1. diarrh+(OP)[view] [source] 2025-12-04 08:04:47
Good question. For fds their Drop implementation closes them, yes. Rust Mutexes will be poisoned on panic (not unlocked). Not sure about futexes.
replies(1): >>reacto+j35
2. reacto+j35[view] [source] 2025-12-05 17:29:33
>>diarrh+(OP)
But if Rust panic’s, the entire process is dead, so everything gets reclaimed on exit by the kernel. Total annihilation.

All modern OS’s behave this way. When your process starts and is assigned an address, you get an area. It can balloon but it starts somewhere. When the process ends, that area is reclaimed.

replies(1): >>diarrh+kQ5
◧◩
3. diarrh+kQ5[view] [source] [discussion] 2025-12-05 21:18:49
>>reacto+j35
The OS is my GC. It's why I segfault liberally.
[go to top]