Re: Adding garbage collection to C++

tmb@idiap.ch
Mon, 17 Aug 1992 15:57:49 GMT

          From comp.compilers

Related articles
[3 earlier articles]
Re: Adding garbage collection to C++ kelvin@kickapoo.cs.iastate.edu (1992-08-13)
Re: Adding garbage collection to C++ fjh@cs.mu.OZ.AU (1992-08-14)
Re: Adding garbage collection to C++ jos@and.nl (1992-08-14)
Re: Adding garbage collection to C++ henry@zoo.toronto.edu (1992-08-14)
Re: Adding garbage collection to C++ bill@amber.ssd.csd.harris.com (1992-08-14)
Re: Adding garbage collection to C++ pardo@cs.washington.edu (1992-08-15)
Re: Adding garbage collection to C++ tmb@idiap.ch (1992-08-17)
Re: Adding garbage collection to C++ tmb@idiap.ch (1992-08-17)
Re: Adding garbage collection to C++ hudson@cs.umass.edu (1992-08-17)
Re: Adding garbage collection to C++ fjh@munta.cs.mu.OZ.AU (1992-08-18)
Re: Adding garbage collection to C++ tmb@arolla.idiap.ch (1992-08-18)
GC across address spaces (WAS: Adding garbage collection to C++) pardo@cs.washington.edu (1992-08-19)
Re: Adding garbage collection to C++ tmb@arolla.idiap.ch (1992-08-19)
[2 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: tmb@idiap.ch
Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle Perceptive)
Date: Mon, 17 Aug 1992 15:57:49 GMT
References: 92-08-052 92-08-069
Keywords: C, GC

fjh@cs.mu.OZ.AU (Fergus Henderson) writes:


>[C lets you hide pointers in inconvenient ways, e.g. writing them to
>files or scrambling bytes in unions.]


All the locations where a pointer is converted to an integer (via casts,
unions, or memcpy) are detectable by the compiler. For any pointer that
has ever been (mis-)treated in such a way, the corresponding memory can
simply be exempted from garbage collection (e.g., by recording the pointer
in some global table searched by the garbage collector).


Thomas.
--


Post a followup to this message

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