[m-rev.] for review: add agc tracing code to exception.m

Simon Taylor stayl at cs.mu.OZ.AU
Wed Jun 5 04:04:45 AEST 2002


On 05-Jun-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> Estimated hours taken: 4
> Branches: main
> 
> library/exception.m:
> 	For accurate garbage collection, add code to trace the local
> 	variables in the hand-coded C builtin_catch_*() functions.
 
> Index: library/exception.m
> ===================================================================
> + #define MR_INSTALL_AGC_HANDLER(TYPE_INFO, HANDLER_PRED) \
> + 	do { \
> +	    agc_locals.prev = mercury__private_builtin__stack_chain; \
> +	    agc_locals.trace = mercury__exception__builtin_catch_gc_trace; \
> +	    agc_locals.type_info = (TYPE_INFO); \
> +	    agc_locals.handler_pred = (HANDLER_PRED); \
> +	    mercury__private_builtin__stack_chain = &agc_locals; \
> +	} while(0);

Remove the trailing semi-colon.

All of the new macros should have `ML_' prefixes, not `MR_'.

Simon.
--------------------------------------------------------------------------
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