29 Apr
2006
29 Apr
'06
6:50 p.m.
On Sat, 2006-04-29 at 14:16 -0400, bulia byak wrote:
Can you please define "places that the garbage collector cannot see"? How do I find out if I'm in such a place or not?
I was originally going to save more detail for the garbage collector article. But I guess the rules of thumb are simple...
The garbage collector can see pointers in:
* global/static variables in the program
* local variables/parameters
* objects derived from GC::Managed<>
* STL containers using GC::Alloc<>
* objects manually allocated with GC::SCANNED
It cannot see pointers in:
* global/static variables in shared libraries
* objects not derived from GC::Managed<>
* STL containers not using GC::Alloc<>
I've updated the article accordingly.
-mental