From: Ammar Ali Date: 2010-12-07T01:29:39+09:00 Subject: Re: Manual Memory Management and Automatic Garbage Collection On Mon, Dec 6, 2010 at 4:41 PM, Tridib Bandopadhyay wrote: > Hello all > > 1. When the Garbage Collector starts working can I see it.(For e.g-It > will print like Garbage Collector starting.)Somebody referred me use > GC_NOTIFY but there is no such function in the gc.c file. The GC_NOTIFY flag is not available in ruby 1.8, it's in 1.9 only. If you have to use ruby 1.8, you can do it yourself by adding printf calls at the begining an end of the rb_gc_start function in gc.c. Under 1.9 the function where GC start is called gc_collect, or at least that's where GC_NOTIFY is placed. > 2. What are the main parts in Ruby Garbage Collector I need to know to > accomplish this research. I think this was suggested before, it will answer many of your questions. http://timetobleed.com/garbage-collection-slides-from-la-ruby-conference/ Regards, Ammar