[Gc] Determining if an object is valid

Hans Aberg haberg-1 at telia.com
Wed Aug 29 06:35:29 PDT 2012


Is there an inexpensive way to determine if an object is still valid? Using GC_is_heap_ptr(), a C++ object on the function stack can be marked so that it moves to the heap when its scope expires. But if all references to it are dead, this is unnecessary. There seems no simple way to determine this, though.

Hans





More information about the Gc mailing list