X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FProfHeap.c;h=db9e41fa18a45c7c3d773e1046dab73953086a87;hb=4dc5598c02fcdd00b3f9f3f13421b489bafe178f;hp=f1a3b05ce49bc27be37b0565148bda562c67a5b2;hpb=61af839f961ea85dc80bed03313ee318fc02fa00;p=ghc-hetmet.git diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c index f1a3b05..db9e41f 100644 --- a/rts/ProfHeap.c +++ b/rts/ProfHeap.c @@ -217,7 +217,6 @@ closureIdentity( StgClosure *p ) case CONSTR_0_2: case CONSTR_STATIC: case CONSTR_NOCAF_STATIC: - printf("",strlen(GET_CON_DESC(itbl_to_con_itbl(info)))); return GET_CON_DESC(itbl_to_con_itbl(info)); default: return type_names[info->type]; @@ -458,12 +457,8 @@ initHeapProfiling(void) era = 0; } - { // max_era = 2^LDV_SHIFT - nat p; - max_era = 1; - for (p = 0; p < LDV_SHIFT; p++) - max_era *= 2; - } + // max_era = 2^LDV_SHIFT + max_era = 1 << LDV_SHIFT; n_censuses = 32; censuses = stgMallocBytes(sizeof(Census) * n_censuses, "initHeapProfiling");