|
|
|
|
|
by oneshtein
653 days ago
|
|
But even languages with Tricolour Mark&Sweep GC, which handles cyclic references just fine, it's still possible to make memory leak via a dangling reference to a node in a complex cross-linked graph, because language and GC allows that. Rust by default forbids cyclic references, by forcing to use trees, which completely avoids the problem. |
|
Linux kernel uses doubly linked lists, Redis uses doubly linked lists, V8 JS engine uses doubly linked lists. Have their authors chosen something obviously wrong?