[m-rev.] for review: fix memory management bug

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 12 11:01:57 AEDT 2004


On 11-Feb-2004, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> On 10-Feb-2004, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > +** - For MR_GC_ensure_room_for_next(), the memory is allocated on the GC heap,
> > +**   which means that the array elements can point to anything;
> > +**   but the array address _MUST NOT_ be stored in memory allocated with
> > +**   malloc() or MR_malloc().
> 
> This is overstating the restriction a little: the array address can be stored
> in malloc'd memory, as long as it is also stored in memory scanned by the
> collector.

I have added "(unless it is also stored in some place which _is_ scanned
by the collector)" to the comment.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "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.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list