Why we need CCS entries in apply functions (rts/Apply.cmm and rts/StgStdThunks.cmm)

1 Jul
2014
1 Jul
'14
2:27 p.m.
Hi all, Code for entering cost-centres before executing the function/thunk body is generated in `compiler/codeGen/StgCmmBind.hs`, by `thunkCode` and `closureCodeBody` functions. But we also have some `enterCostCentreThunk` and `enterCostCentreFun` calls in `rts/Apply.cmm` and `rts/StgStdThunks.cmm`. I'm wondering why are those necessary. Thunk/function bodies already have CCS entries generated by functions in StgCmmBind so I'm having trouble seeing the need for this additional entries. Can anyone explain those to me? Thanks, --- Ömer Sinan Ağacan http://osa1.net
3977
Age (days ago)
3977
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ömer Sinan Ağacan