[m-dev.] MR_GC_check

Ralph Becket rafe at cs.mu.OZ.AU
Mon Mar 3 22:22:34 AEDT 2003


I believe we currently invoke MR_GC_check before each allocation.  It
occurrs to me that apart from foreign code that allocates space on the
heap (e.g. array), there is an easily calculable upper bound on the
amount of memory that will be directly allocated by a procedure.  We
could therefore replace many MR_GC_checks with a single check in the
procedure prologue (and possibly before any directly recursive calls.)

Is this the case?
Would it be hard to do?
Could we expect much in the way of a pay off?

	Ralph
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list