Re: The joy of garbage collection



Thanks for the replies folks, there's definitely some things I can use
in there. I'm implementing it in c, which I should have made clearer,
so I can't rely on the native environment for garbage collection. And
yes, one of the objectives is to get an understanding of garbage
collection


The gc papers look good, I've been looking for something like that, but
there's a lot of extremely technical papers out there that assume much
prior knowledge. It's good to have a place to start.

Also, the free list is the part I was missing, and the various ideas
for implementing that are interesting. I especially like the bitmap
idea.

"I don't see how they could be on the heap
individually and unboxed, where would the mark bit go, how
could sweep know to leave them?"

Yes! This is what I still don't understand. Where do you put the
unboxed data, as it can't go on the heap. I think I could now implement
a very simple garbage collector if everything was boxed, but I'd like
strings, arrays and various c data structures as unboxed data. Does
this make sense?

.



Relevant Pages

  • Re: The joy of garbage collection
    ... as it can't go on the heap. ... arrays and various c data structures as unboxed data. ... The bitmap, or separate typecode, are not the fastest solutions. ... if you want to mix easily C with Lisp, ...
    (comp.lang.lisp)
  • Re: P-Source: A Guide to the Apple Pascal System
    ... Activation frames will be allocated from these chunks until it is ... then allocate another chunk and link to it. ... allocated dynamically, managed like anything else in the heap, and even ... I will have a background thread that runs garbage collection and calls ...
    (comp.sys.apple2)
  • Re: What is garbage collection
    ... >with a friend recently who claims that he wrote compilers before. ... >Garbage collection is from a programmers point of view the automatic ... >cleanup of heap data when there is no reference to it anymore. ... When they collect they copy the active objects to the other ...
    (comp.programming)
  • Re: Garbage collector and multiple threads
    ... > The only way to prevent Garbage Collection is to create no garbage. ... > additional heap objects, then no Garbage Collections will occur. ... Do AppDomains have separate heaps, ... > The only other thing I can think of is that if you allocate little enough ...
    (microsoft.public.dotnet.framework)
  • Re: Another garbage collection question
    ... but this game is to be launched by a double click. ... Put the command line arguments in the "shortcut" or batch file. ... you can't control Java's garbage collection. ... the heap and stack sizes to effect how often Java runs GC, ...
    (comp.lang.java.programmer)