X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FStable.c;h=93b22464b5d1b84fc28c5e59a474578ac20eb24d;hb=82460c32166d91c494723f9752389f6b9bbe5bcb;hp=30d17c04fbaab405adc93fcad111b8b0c4ea5925;hpb=1621421619df6f19dce3b8cb29471e5d3c731acb;p=ghc-hetmet.git diff --git a/ghc/rts/Stable.c b/ghc/rts/Stable.c index 30d17c0..93b2246 100644 --- a/ghc/rts/Stable.c +++ b/ghc/rts/Stable.c @@ -137,6 +137,9 @@ initStablePtrTable(void) // Nothing to do: // the table will be allocated the first time makeStablePtr is // called, and we want the table to persist through multiple inits. + // + // Also, getStablePtr is now called from __attribute__((constructor)) + // functions, so initialising things here wouldn't work anyway. } /* @@ -373,13 +376,13 @@ gcStablePtrTable( void ) if (p->sn_obj == NULL) { // StableName object is dead freeStableName(p); - IF_DEBUG(stable, debugBelch("GC'd Stable name %ld\n", + IF_DEBUG(stable, debugBelch("GC'd Stable name %d\n", p - stable_ptr_table)); continue; } else { p->addr = (StgPtr)isAlive((StgClosure *)p->addr); - IF_DEBUG(stable, debugBelch("Stable name %ld still alive at %p, ref %ld\n", p - stable_ptr_table, p->addr, p->ref)); + IF_DEBUG(stable, debugBelch("Stable name %d still alive at %p, ref %ld\n", p - stable_ptr_table, p->addr, p->ref)); } } }