4 ms·
Killing a process without freeing all allocations is, as far as I can tell, routine in C. Especially for memory it makes no sense "freeing" allocations, the who
by seventh-chord 6y ago
Killing a process without freeing all allocations is, as far as I can tell, routine in C. Especially for memory it makes no sense "freeing" allocations, the whole memory space is getting scrapped anyways. Of course, once you add RAAI the compiler cant reason about which destructors it can skip on program exit, and if programmers are negligent of this you get programs that are slow to close.
- gpderetta 6y agoexit(2) will only call destructors of static objects. Quick_exit not even those.
- estebank 6y ago> Killing a process without freeing all allocations is, as far as I can tell, routine in C. Many times by accident :) > if programmers are negligent of this you get programs that are slow to close. I wouldn't call that negligence, just not fully optimized.