[mercury-users] Structure reuse
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Jul 15 12:46:32 AEST 2003
On 15-Jul-2003, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> You can set the heap size by putting "--heap-size=2048", say, in your
> MERCURY_OPTIONS environment variable, to limit the program to a 2MByte
> heap.
Actually the --heap-size option is only used for the non-Boehm garbage
collectors. For the Boehm collector, the heap size will be determined
automatically (based on the amount of live data, GC_free_space_divisor).
If you want to explicitly set the maxium heap size with the Boehm collector,
you can do so by calling the C function GC_set_max_heap_size().
> > ...as it also stops you backtracking in a read-only fashion and using
> > semidet predicates to match portions of the tree for updating.
>
> That's fine: use predicates returning bool.
Or functions returning bool, for that matter.
--
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-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list