projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dfcd57
)
Compute max_era more simply
author
Ian Lynagh
<igloo@earth.li>
Thu, 16 Aug 2007 23:05:50 +0000
(23:05 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Thu, 16 Aug 2007 23:05:50 +0000
(23:05 +0000)
rts/ProfHeap.c
patch
|
blob
|
history
diff --git
a/rts/ProfHeap.c
b/rts/ProfHeap.c
index
3f2b9f6
..
db9e41f
100644
(file)
--- a/
rts/ProfHeap.c
+++ b/
rts/ProfHeap.c
@@
-457,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");