From: Scott Thompson Date: 2003-08-12T23:36:14+09:00 Subject: Re: A question about Circular References > L> I'm not sure that this is in fact true for "Data" objects like > these. I > L> took a quick look at the Ruby source code (see > rb_gc_mark_children() in > L> gc.c) and it's not clear to me that instance variables for Data > L> (extension) objects get marked automatically. You should add some > L> debugging statements (or whatever) to convince yourself that this is > L> what actually happens. > > line 622 in gc.c (ruby 1.8.0) > > Guy Decoux Do you really mean line 662 (two 6's not two 2's)? On that line if a ruby object has any "generic instance variables" then those variables are marked. Then after that, 'round line 846, the mark routine for the data pointer is called. Looks like my stragegy will work. Thank you both for your time and expertise! Scott