From: Robert Klemme Date: 2010-12-07T00:35:13+09:00 Subject: Re: Manual Memory Management and Automatic Garbage Collection On Mon, Dec 6, 2010 at 3:41 PM, Tridib Bandopadhyay wrote: > I am trying to do a research on Manual Memory Management and Automatic > Garbage Collection on Ruby.So i need to play with Garbage Collector code > of Ruby.I am using Ruby 1.8.6 > > I am also trying to figure out in Ruby when the Garbage Collector starts > working.But didn't got any clue. There were some threads here recently about GC. What specific questions were left unanswered? > I read somewhere in wiki about some systems that uses this design of > Memory Allocation. > > Can any one help me in some of my queries:- > > 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. You know CPP (C preprocessor) defines and macros, do you? Please look for "GC_NOTIFY". > 2. What are the main parts in Ruby Garbage Collector I need to know to > accomplish this research. I haven't looked closely but I would start at the end of the file and walk my way through reading from rb_gc_start(). You should hit all main structures pretty soon. > After I get my first step done I hope I will have many questions to > share with you all. OK, let's hear them. > Regards...Eagerly waiting for a reply at the earliest Please don't push it. It won't increase your chances of getting answers anyway. http://www.catb.org/~esr/faqs/smart-questions.html#urgent Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/