Garbage collection of binaries

Erik Stenman Erik.Stenman@REDACTED
Mon Oct 20 12:12:03 CEST 2003


> Thomas Lindgren Wrote
> --- Joachim Durchholz <joachim.durchholz@REDACTED> wrote:
> > An even more modular approach would be to make the
> > binaries normal
> > citizens of garbage collected memory. This would
> > also simplify the 
> > emulator code, I'd think :-)
> 
> Storing binaries globally means message passing needs
> not copy binaries. That was the reason I heard, at
> least.

Binaries would be copyied not onlyby  message passing, 
but by the garbage collector itself.
ERTS currently uses a generational *copying* GC, hence 
storing the binaries directly on the heap without 
rewriting the GC would mean that the binary would be 
copied at each major GC.

/Erik




More information about the erlang-questions mailing list