comp.lang.ada
 help / color / mirror / Atom feed
From: mazzanti@iei.pi.cnr.it (Franco Mazzanti)
Subject: Re: Finalization and Garbage Collection: a hole in the RM?
Date: 1996/08/30
Date: 1996-08-30T00:00:00+00:00	[thread overview]
Message-ID: <mazzanti-3008961532260001@mac-mazz.iei.pi.cnr.it> (raw)



> >I could not find are rule describing what could/should happen when an
> >exception is raised by a Finalization routine called by the garbage
> >collector. ...


> One possible answer is that the exceptions get lost, as for a task.
> This makes debugging rather painful.
> ...

> Another possibility is to kill the whole program, trap into the
> debugger, record the error in an error log, or whatever is appropriate
> for catastrophic failures on your system.
> ...

> 
> Another possibility is to not collect finalizable objects.  
> ...

> In any case, the design of Ada 95 does not answer your question, so I'd
> say it's fair for the gc implementer to design a solution to the
> problem.  There's always the cop-out of letting the user choose from
> among several bad options.  ;-)
> 
> - Bob
> 

Well, I understand that a clean integration of garbage collection in Ada
requires the solution of several difficulties.

What is really scaring me, are not just the problems inherent to GC,
but the fact that there are hidden "holes" in the language definition,
and that the effect of a program falling in this "holes" is completely
undefined.

Are there any other holes like this one are hiding there?

I am trying to write a roadmap to erroneous executions and other 
unpredictabilities in Ada95, so for me it would be important to find all
the possible issues of this kind.

Anybody knows?


Franco Mazzanti

------------------------------------------------------------
   Dr. Franco Mazzanti
   Istituto di Elaborazione della Informazione
   Via S.Maria 46, 56126 Pisa, ITALY
   Tel: +39-50-593447/593400, Fax: +39-50-554342
   e-mail: mazzanti@iei.pi.cnr.it
------------------------------------------------------------




             reply	other threads:[~1996-08-30  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-30  0:00 Franco Mazzanti [this message]
1996-08-30  0:00 ` Finalization and Garbage Collection: a hole in the RM? Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-09-09  0:00 Franco Mazzanti
1996-09-06  0:00 Franco Mazzanti
1996-09-06  0:00 ` Robert A Duff
1996-09-07  0:00   ` Robert Dewar
1996-09-04  0:00 Franco Mazzanti
1996-09-08  0:00 ` Robert Dewar
1996-09-02  0:00 Franco Mazzanti
1996-09-03  0:00 ` Robert A Duff
1996-09-03  0:00 ` Robert Dewar
1996-08-26  0:00 Franco Mazzanti
1996-08-29  0:00 ` Robert A Duff
1996-08-29  0:00 ` Robert A Duff
replies disabled

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