Ruby gc.c Code Help

  • Thread starter Tridib Bandopadhyay
  • Start date
T

Tridib Bandopadhyay

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
 
J

Jeremy Bopp

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.

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
 
A

andrew mcelroy

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. =A0Perhaps
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
 
T

Tridib Bandopadhyay

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
 
J

Jeremy Bopp

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?

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:

http://www.scribd.com/doc/27174770/Garbage-Collection-and-the-Ruby-Heap

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
 
T

Tridib Bandopadhyay

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top