Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Languages Misc > GC Design Quest...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 1122 of 1154
Post > Topic >>

GC Design Question

by Pie Squared <PieSquared@[EMAIL PROTECTED] > Mar 20, 2008 at 03:04 PM

Hey, all. I've been trying to learn a bit more about GC's and GC
design lately for my own small language experiment.

Just in case I'm in the wrong place, is there any comp.gc newsgroup or
something of the like? (i.e., am I posting this question in the right
place?)

Anyway, my actual question was:

Is it possible to make a conservative moving GC?

I haven't been able to figure out a way to do this - or find any such
descriptions on the Net, either. The way I understand it is that a
conservative GC takes a place where it looks for pointers - such as
the system stack - and then scans it, looking for bit patterns that
look like pointers to the heap. Now, the problem with this is that it
may find FALSE pointers, for example, just integers which happen to
have the value of a pointer to the heap. This isn't really a problem
in itself, but the problem comes in when you either move the heap, or
move the objects in the heap (compacting GC). At that point, either
you have to somehow update those pointers you used, or your pointers
become invalid. IF all the pointers were real pointers, this would be
trivial - just write the new value to the place where the pointer is
stored. But, pointers might be fake pointers - and writing over one of
those might cause disastrous consequences (imagine that it was a loop
counter or something).

So, is there some way to have a conservative GC which moves it's
objects around?

Explanations, ideas, hints, links to papers - anything is welcome.
Thanks!

-- Andrew Gibiansky




 10 Posts in Topic:
GC Design Question
Pie Squared <PieSquare  2008-03-20 15:04:31 
Re: GC Design Question
Nils M Holm <news2008@  2008-03-21 06:49:24 
Re: GC Design Question
"Aaron Gray" &l  2008-03-22 21:08:47 
Re: GC Design Question
Hallvard B Furuseth <h  2008-03-23 20:08:15 
Re: GC Design Question
Friedrich Dominicus <j  2008-03-24 07:48:59 
Re: GC Design Question
Hallvard B Furuseth <h  2008-03-25 17:05:11 
Re: GC Design Question
Hallvard B Furuseth <h  2008-03-25 17:06:18 
Re: GC Design Question
"cr88192" <c  2008-03-23 10:47:39 
Re: GC Design Question
torbenm@[EMAIL PROTECTED]  2008-03-25 16:02:48 
Re: GC Design Question
Waldek Hebisch <hebisc  2008-03-26 18:20:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:07:59 CDT 2008.