4 ms·
An alternative approach to garbage collection in C++ (precise as opposed to conservative): http://smieciuch.sourceforge.net/ http://smieciuch.sourceforge.net/
by pfedor 18y ago
An alternative approach to garbage collection in C++ (precise as opposed to conservative): http://smieciuch.sourceforge.net/ http://smieciuch.sourceforge.net/
- anamax 18y agoYou can't do precise GC in C++ because you can't find all valid pointers. Two of the "can't handle" cases are: (1) the XOR trick to represent the prev/next pointer for a doubly-linked list with a single field. (2) Ullman's set set representation which uses an array of values which may, or may not, be valid pointers. You don't know without consulting another structure. (The whole point of this representation is that you don't clear things on initialization.)