Re: Static Garbage Collection

Matthias-Christian Ott <ott@mirix.org>
Tue, 26 May 2009 15:01:49 +0200

          From comp.compilers

Related articles
Static Garbage Collection ott@mirix.org (Matthias-Christian Ott) (2009-05-25)
Re: Static Garbage Collection dot@dotat.at (Tony Finch) (2009-05-26)
Re: Static Garbage Collection gneuner2@comcast.net (George Neuner) (2009-05-25)
Re: Static Garbage Collection torbenm@pc-003.diku.dk (2009-05-26)
Re: Static Garbage Collection mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2009-05-26)
Re: Static Garbage Collection stock@esa.informatik.tu-darmstadt.de (Florian Stock) (2009-05-26)
Re: Static Garbage Collection ott@mirix.org (Matthias-Christian Ott) (2009-05-26)
Re: Static Garbage Collection vincent@famillebelliard.fr (Vincent Belliard) (2009-05-26)
Re: Static Garbage Collection DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-05-29)
Re: Static Garbage Collection armelasselin@hotmail.com (Armel) (2009-05-29)
Re: Static Garbage Collection marcov@stack.nl (Marco van de Voort) (2009-05-30)
Re: Static Garbage Collection vincent@famillebelliard.fr (Vincent Belliard) (2009-05-31)
Re: Static Garbage Collection armelasselin@hotmail.com (Armel) (2009-06-01)
| List of all articles for this month |
From: Matthias-Christian Ott <ott@mirix.org>
Newsgroups: comp.compilers
Date: Tue, 26 May 2009 15:01:49 +0200
Organization: Compilers Central
References: 09-05-120
Keywords: GC
Posted-Date: 28 May 2009 17:38:14 EDT

On Mon, May 25, 2009 at 09:28:01PM +0200, Matthias-Christian Ott wrote:
> [...]
> [This feels like it's equivalent to the halting problem which is known to
> be insoluble in the general case, albeit often soluble in specific
> instances. -John]


So you claim that the life-time of some objects cannot be determined
statically at compile-time.


If this claim is true (that seems very likely [1,2]), there are two
possible ways to do deallocate the objects:


1) Figure out all conditions which have to be satisfied, check at
      runtime whether they are met and then de-allocate the object.


      I'm not sure if the life-time of an object can "reduced" to conditions
      which have to be true a runtime.


2) Simply do garbage collection for those objects [1,2]. This seems to
      possible by reference-counting [2].


Moreover, I'm not sure what's faster in practice "condition evaluation"
or simple, non-periodic garbage collection.


Regards,
Matthias-Christian


[1] Arthur Veen. The JOSES Project: Compiling Java for Embedded
        Systems. In Proceeding of JOSES: Java Optimization Strategies for
        Embedded Systems, Genova, Italy, April 2001.
[2] Tobias Ritzau. Memory Efficient Hard Real-Time Garbage Collection.
        In Linkvping Studies in Science and Technology. Dissertations.
        Linkvping, Sweden, June 2003.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.