[Gc] Basic questions
Sat, 10 May 2003 17:29:29 +1000
On 09-May-2003, Emmanuel Stapf [ES] <firstname.lastname@example.org> 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 <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <https://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.