Hello everyone..
Can anyone State me in Brief how the file gc.c works..(I need to
understand the code)
Mean to say...I need to figure out how gc.c function and what are the
variables(Static and Global) it uses.
Regards
Tridib
···
--
Posted via http://www.ruby-forum.com/.
Any one.!! Who has the knowledge of gc.c file?
Regards
Tridib
···
--
Posted via http://www.ruby-forum.com/.
Hello every one
I have one question
The Gc is called at the runtime in Ruby. So if i try to code a program
which requires memory allocation and Garbage collector.
Now the scenario is such that--- In the gc.c file if I write some print
statement.So when the gc comes for working, Will it show me the message
which i tried to print out.?
Regards
Tridib
···
--
Posted via http://www.ruby-forum.com/.
It's possible that there is no way to describe the operation of gc.c
briefly and that those with the knowledge to describe it at all don't
have the time necessary to write a long response for you. Perhaps
asking more specific questions you have regarding the parts of gc.c that
are unclear to you would elicit a better response.
Are you interested in how the garbage collector works at the Ruby code
level or at the C code level? Are you curious more about how the
garbage collector is triggered or what it does once it's running? I'm
sure you have something more detailed in mind than what you stated in
your first post.
Another option might be to wait a little bit longer than half a day to
get impatient. 
-Jeremy
···
On 10/27/2010 10:42 AM, Tridib Bandopadhyay wrote:
Any one.!! Who has the knowledge of gc.c file?
Any one.!! Who has the knowledge of gc.c file?
It's possible that there is no way to describe the operation of gc.c
briefly and that those with the knowledge to describe it at all don't
have the time necessary to write a long response for you. Perhaps
asking more specific questions you have regarding the parts of gc.c that
are unclear to you would elicit a better response.
This has been discussed before on this mailing list. Please use google.
Also try googling GC ruby mark and sweep stop the world.
Andrew McElroy
···
On Wed, Oct 27, 2010 at 11:06 AM, Jeremy Bopp <jeremy@bopp.net> wrote:
On 10/27/2010 10:42 AM, Tridib Bandopadhyay wrote:
IS the function/working of GC in Ruby same as that of JAVA?
(i.e--Mark,copy,sweep)
If not,How does the GC work in RUBY 1.8.1?
Regards
Tridib
···
--
Posted via http://www.ruby-forum.com/.
Following the recommendation Andrew made just prior to your post, I
googled as suggested and found the following link on the first page of
results:
I'm not sure how accurate it is, but it looks pretty good and may give
you more depth of understanding than you may already have. There are
plenty of other hits for that search, so you should give it a try. 
-Jeremy
···
On 11/3/2010 1:43 PM, Tridib Bandopadhyay wrote:
IS the function/working of GC in Ruby same as that of JAVA?
(i.e--Mark,copy,sweep)
If not,How does the GC work in RUBY 1.8.1?