On Friday 01 January 2010 at 13:04, bacek  wrote:

> Log:
> Don't use FixedSizeAllocator in CallContext if FSA is disabled.
> +#if PARROT_GC_USE_FIXED_SIZE_ALLOCATOR
> +#  define ALLOC_CELL(i) \
> +     (Pcc_cell *)Parrot_gc_allocate_fixed_size_storage((i), sizeof 
(Pcc_cell))
> +#  define FREE_CELL(i, c) \
> +     Parrot_gc_free_fixed_size_storage((i), sizeof (Pcc_cell), 
(UNTAG_CELL(c)))
> +#else
> +#  define ALLOC_CELL(i) \
> +     (Pcc_cell *)mem_sys_allocate_zeroed(sizeof (Pcc_cell))
> +#  define FREE_CELL(i, c) \
> +     mem_sys_free(UNTAG_CELL(c))
> +#endif

Instead of littering lots of .c files with #idfef forests, perhaps we should 
define a Parrot_allocate_fixed_size() macro to use in these cases instead.

-- c
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to