comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: Garbage collection?
Date: 21 Apr 92 23:48:36 GMT	[thread overview]
Message-ID: <EACHUS.92Apr21184836@Dr_No.mitre.org> (raw)

In article <1992Apr21.160955.2523@titan.ksc.nasa.gov> mcroberts@titan.ksc.nasa.
gov writes:

  > I'm curious as to the state of the art in automated garbage
  > collection.

   No Ada compiler I know of does complete garbage collection.  This
is not because it is too hard, but because the interaction of tasking
and garbage collection leads to unacceptable compromises.  Since in
good Ada compilers the only way to create garbage that needs
collection is with access types, the general wisdom in Ada currently
is that garbage collection is the resposibility of the application.
I'm not happy with that, but that is the way the culture has evolved.

   Is this something one needs to worry about when using solid
   production quality Ada compilers...

   Yes.

                                   ...and is there any negative
   performance impact if you don't clean up your own garbage.

   Very definitely.  An application which doesn't create much garbage
and doesn't need to run for long periods of time can ignore the
problem, but most real-time applications cannot.  Fortunately, the
type of garbage collection needed for most real-time applications is
easy to program in Ada.  However, the structures needed by many AI
applications are not easy to clean up after.  I've thought about
writing a more-or-less portable garbage collector which would only
need a few low-level routines rewritten to move it to a new
environment.  But it would be a lot of work, and the usual "solution"
to the problem in safety critical systems instead is to just forbid
access types.
--

					Robert I. Eachus

with STANDARD_DISCLAIMER;
use  STANDARD_DISCLAIMER;
function MESSAGE (TEXT: in CLEVER_IDEAS) return BETTER_IDEAS is...

             reply	other threads:[~1992-04-21 23:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-04-21 23:48 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-13 12:14 Garbage Collection ??? ldries46
2012-04-13 13:20 ` Dmitry A. Kazakov
2012-04-13 19:27   ` ldries46
2012-04-13 20:06     ` Dmitry A. Kazakov
2012-04-13 22:49     ` Brian Drummond
2012-04-14  3:21       ` ldries46
2012-04-14 18:21         ` Robert A Duff
2012-04-18  9:07           ` Julian Leyh
2012-04-19 14:36             ` Robert A Duff
2012-04-19 20:26               ` Randy Brukardt
2012-04-20  7:11                 ` Dmitry A. Kazakov
2012-04-21  0:46                   ` Randy Brukardt
1992-04-22 18:55 Garbage collection? dog.ee.lbl.gov!overload.lbl.gov!agate!spool.mu.edu!yale.edu!jvnc.net!darw
1992-04-21 23:02 Rick Hudson
1992-04-21 21:09 titan.ksc.nasa.gov!mcroberts
replies disabled

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