comp.lang.ada
 help / color / mirror / Atom feed
From: pipex!uknet!root44!hrc63!mrcu!paj@uunet.uu.net  (Paul Johnson)
Subject: Re: Garbage collector necessary (for Ada access types)?
Date: 10 May 93 07:50:17 GMT	[thread overview]
Message-ID: <2848@snap> (raw)

In article <C6L3wx.6wD.1@cs.cmu.edu> monnier+@cs.cmu.edu (Stefan Monnier) write
s:

>If you don't want to spend too much time in your compiler just for the
>GC problem (emitting code so that the GC knows what is a pointer andwhat
>is not), you can use a conservative GC (you can even use 'ready-to-go'
>ones for C: it replaces the malloc and the mfree becomes useless). But
>beware its limitations: such GC is generally slower and doesn't guarantee
>you won't have "memory leaks".

I have a paper by Ben Zorn of the U of Colorado at Boulder.  He
measured the performance of the Boehm conservative GC in half a dozen
programs and found that the slowdown was pretty trivial, although the
programs did need about twice as much memory.

The full report is CU-CS-573-92, April 1992, from Dept of Computer
Science, Campus box 430, University of Colorado, Boulder, Colorado
80309.

Of course, a well tuned GC that has structure information available
will do much better.  For a good survey of GC techniques, see
"Uniprocessor Garbage Collection Techniques" by Paul R. Wilson, U. of
Texas.  <wilson@cs.utexas.edu>.  This paper is available by FTP, so
try Archie before mailing Dr. Wilson.


Paul.
-- 
Paul Johnson (paj@gec-mrc.co.uk).	    | Tel: +44 245 73331 ext 3245
--------------------------------------------+----------------------------------
These ideas and others like them can be had | GEC-Marconi Research is not
for $0.02 each from any reputable idealist. | responsible for my opinions

             reply	other threads:[~1993-05-10  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-10  7:50 Paul Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-06  2:50 Garbage collector necessary (for Ada access types)? cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.c
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox