[Gc] Basic questions
Sat, 10 May 2003 17:29:29 +1000
On 09-May-2003, Emmanuel Stapf [ES] <email@example.com> wrote:
> Is there a reason why my pointer cannot be at the end of my allocated area?
Yes -- the GC would not be able to tell the difference between a pointer
to the byte past the end of the area allocated for your object
and a pointer to the start of the next object. So it would have to
keep *both* objects. If the next object happened to contain a
pointer to a large data structure, this could cause a large increase
in memory retention.
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.