summaryrefslogtreecommitdiff
path: root/rts/AutoApply.h
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@mit.edu>2013-09-07 14:16:37 -0700
committerEdward Z. Yang <ezyang@mit.edu>2013-09-07 14:16:37 -0700
commit275725892cc14fea32091b80d17b14c8cbf50e84 (patch)
tree98f00a8884ce6c38534cdfd74e56d3874df4c160 /rts/AutoApply.h
parent021b1f8991850a20c2c8ace1c9282251e10fda03 (diff)
downloadhaskell-275725892cc14fea32091b80d17b14c8cbf50e84.tar.gz
Record PAP allocation to CCCS.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'rts/AutoApply.h')
-rw-r--r--rts/AutoApply.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/AutoApply.h b/rts/AutoApply.h
index c48bdf4701..f64bc6d894 100644
--- a/rts/AutoApply.h
+++ b/rts/AutoApply.h
@@ -20,6 +20,7 @@
size = SIZEOF_StgPAP + WDS(n); \
HP_CHK_NP_ASSIGN_SP0(size,f); \
TICK_ALLOC_PAP(size, 0); \
+ CCCS_ALLOC(size); \
pap = Hp + WDS(1) - size; \
SET_HDR(pap, stg_PAP_info, CCCS); \
StgPAP_arity(pap) = HALF_W_(arity - m); \
@@ -49,6 +50,7 @@
size = SIZEOF_StgPAP + WDS(TO_W_(StgPAP_n_args(pap))) + WDS(n); \
HP_CHK_NP_ASSIGN_SP0(size,f); \
TICK_ALLOC_PAP(size, 0); \
+ CCCS_ALLOC(size); \
new_pap = Hp + WDS(1) - size; \
SET_HDR(new_pap, stg_PAP_info, CCCS); \
StgPAP_arity(new_pap) = HALF_W_(arity - m); \