Paul Brannan wrote: > > On Mon, Jun 17, 2002 at 06:08:20AM +0900, Joel VanderWerf wrote: > > Hope it's useful to someone besides me... > > I've been wanting something like this for quite some time. It's not > easy to test to make sure you aren't keeping references to objects you > don't intend to keep references to; this sounds like it should > definitely help. > > Do you have a patched gc.c that works with Ruby 1.7? No, sorry. I've never looked into 1.7, but it might not be too hard to adapt. The patch consists of a small change in variable.c plus a new method in gc.c plus a few lines added or changed in rc_gc_mark(). Look for the '#ifdef DEBUG_REACHABILITY', and let me know if I can help with anything.