projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak a Show instance
[ghc-hetmet.git]
/
rts
/
LdvProfile.h
diff --git
a/rts/LdvProfile.h
b/rts/LdvProfile.h
index
5380c92
..
c61b010
100644
(file)
--- a/
rts/LdvProfile.h
+++ b/
rts/LdvProfile.h
@@
-24,11
+24,11
@@
extern void LdvCensusKillAll ( void );
// Invoked when:
// 1) Hp is incremented and exceeds HpLim (in Updates.hc).
// 2) copypart() is called (in GC.c).
// Invoked when:
// 1) Hp is incremented and exceeds HpLim (in Updates.hc).
// 2) copypart() is called (in GC.c).
-#define LDV_FILL_SLOP(from, howManyBackwards) \
+#define LDV_FILL_SLOP(from, howMany) \
if (era > 0) { \
int i; \
if (era > 0) { \
int i; \
- for (i = 1;i <= (howManyBackwards); i++) \
- ((StgWord *)(from))[-i] = 0; \
+ for (i = 0;i < (howMany); i++) \
+ ((StgWord *)(from))[i] = 0; \
}
// Informs the LDV profiler that closure c has just been evacuated.
}
// Informs the LDV profiler that closure c has just been evacuated.