From e7145eeefd01106cedb16a22866eb5160ccfb030 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 19 Jun 2010 23:52:14 +0000 Subject: SET_ARR_HDR's last argument is now a number of bytes, rather than words This avoids unnecessary work and potential loss of information --- includes/rts/storage/ClosureMacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/rts/storage/ClosureMacros.h b/includes/rts/storage/ClosureMacros.h index fa6a2a5448..aead2edd04 100644 --- a/includes/rts/storage/ClosureMacros.h +++ b/includes/rts/storage/ClosureMacros.h @@ -125,9 +125,9 @@ SET_PROF_HDR((StgClosure *)(c),ccs); \ } -#define SET_ARR_HDR(c,info,costCentreStack,n_words) \ +#define SET_ARR_HDR(c,info,costCentreStack,n_bytes) \ SET_HDR(c,info,costCentreStack); \ - (c)->bytes = n_words*sizeof(W_); + (c)->bytes = n_bytes; // Use when changing a closure from one kind to another #define OVERWRITE_INFO(c, new_info) \ -- cgit v1.2.1