From: Peter Zotov Date: 2012-09-07T01:59:34+09:00 Subject: Re: Ruby's Mark mechanism Tridib Bandopadhyay писал 06.09.2012 19:36: > Eric Hodel wrote in post #1074857: >> On Sep 5, 2012, at 2:41 PM, Tridib Bandopadhyay >> >> wrote: >>> After doing one mark cycle how GC determines which slots are >>> reachable?. >>> Does they maintain any database for that? >> >> The GC walks the pointers between objects to determine reachability. >> It >> starts from Object (including constants, methods, etc.), the C stack >> and >> the global variables. > > Yes I have a literature stating exactly what you said. But can anyone > tell me in code level where and in which file I can see GC checks for > these objects? http://rxr.whitequark.org/mri/source/gc.c#2386 and so on. > > Thanks > > Tridib -- WBR, Peter Zotov.