Skip to content

Commit

Permalink
[project @ 2005-07-26 14:44:22 by simonmar]
Browse files Browse the repository at this point in the history
add missing MUT_ARR_PTRS_FROZEN0 cases
  • Loading branch information
simonmar committed Jul 26, 2005
1 parent 37ee58b commit a1f9036
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ghc/rts/LdvProfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ processHeapClosureForDead( StgClosure *c )

case MUT_ARR_PTRS:
case MUT_ARR_PTRS_FROZEN:
case MUT_ARR_PTRS_FROZEN0:
size = mut_arr_ptrs_sizeW((StgMutArrPtrs *)c);
return size;

Expand Down
4 changes: 4 additions & 0 deletions ghc/rts/RetainerProfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ push( StgClosure *c, retainer c_child_r, StgClosure **first_child )
// StgMutArrPtr.ptrs, no SRT
case MUT_ARR_PTRS:
case MUT_ARR_PTRS_FROZEN:
case MUT_ARR_PTRS_FROZEN0:
init_ptrs(&se.info, ((StgMutArrPtrs *)c)->ptrs,
(StgPtr)(((StgMutArrPtrs *)c)->payload));
*first_child = find_ptrs(&se.info);
Expand Down Expand Up @@ -821,6 +822,7 @@ pop( StgClosure **c, StgClosure **cp, retainer *r )
// StgMutArrPtr.ptrs, no SRT
case MUT_ARR_PTRS:
case MUT_ARR_PTRS_FROZEN:
case MUT_ARR_PTRS_FROZEN0:
*c = find_ptrs(&se->info);
if (*c == NULL) {
popOff();
Expand Down Expand Up @@ -990,6 +992,7 @@ isRetainer( StgClosure *c )
case MUT_VAR:
case MUT_ARR_PTRS:
case MUT_ARR_PTRS_FROZEN:
case MUT_ARR_PTRS_FROZEN0:

// thunks are retainers.
case THUNK:
Expand Down Expand Up @@ -2071,6 +2074,7 @@ sanityCheckHeapClosure( StgClosure *c )

case MUT_ARR_PTRS:
case MUT_ARR_PTRS_FROZEN:
case MUT_ARR_PTRS_FROZEN0:
return mut_arr_ptrs_sizeW((StgMutArrPtrs *)c);

case AP:
Expand Down

0 comments on commit a1f9036

Please sign in to comment.