From: Dan Sugalski Date: 2003-10-08T22:47:40+09:00 Subject: Re: GC and the stack On Wed, 8 Oct 2003, Thomas Sondergaard wrote: > > By whether a value points an object in the slots. See > > gc.c:is_pointer_to_heap(). > > Okay. What if, in an extension, I have an integer on the stack that just > happens to contain a value that interpreted as a pointer points into a valid > point in the heap. Will that prevent the "pointed to" object from being > gc'ed? Yes. This is normal for conservative garbage collection schemes. (Which ruby uses for its stack walking) It's very, *very* rarely an issue. Dan