X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FLdvProfile.h;h=b4418046ba919583734f85a4314c5d15b16348e5;hb=7d9eb2e45b4a9ff4cb053b1ec37602be88528b62;hp=5380c92f56853fa605ecfaae12f96dfb5628b6f9;hpb=77b7c34fa24860c91f56250defa91b2d1a7a1c00;p=ghc-hetmet.git diff --git a/rts/LdvProfile.h b/rts/LdvProfile.h index 5380c92..b441804 100644 --- a/rts/LdvProfile.h +++ b/rts/LdvProfile.h @@ -14,9 +14,8 @@ #include "ProfHeap.h" -extern void LDV_recordDead_FILL_SLOP_DYNAMIC( StgClosure *p ); -extern void LdvCensusForDead ( nat ); -extern void LdvCensusKillAll ( void ); +RTS_PRIVATE void LdvCensusForDead ( nat ); +RTS_PRIVATE void LdvCensusKillAll ( void ); // Creates a 0-filled slop of size 'howManyBackwards' backwards from the // address 'from'. @@ -24,11 +23,11 @@ extern void LdvCensusKillAll ( void ); // 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; \ - 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.