dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Destructors are not being called - bug or usage er


From: Rhys Weatherley
Subject: Re: [Pnet-developers] Destructors are not being called - bug or usage error?
Date: Mon, 17 May 2004 07:28:18 +1000
User-agent: KMail/1.4.3

On Monday 17 May 2004 06:21 am, Norbert Bollow wrote:
> Would it be possible for our engine to guarantee that all finalizers
> are called prior to exit?
>
> How hard would that be to implement?

Impossible.  If there is a pointer to the object left over in a register or on 
the system stack, or an integer value than just happens to look like a 
pointer to an object, then the object will be retained by the conservative 
garbage collector no matter what you do. 

But, you are welcome to try to devise an solution to the guaranteed 
finalization problem that 50 years of GC research has been unable to find.  
Let me know when you have a patch. :-)

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]