X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FStable.c;h=94a756a380e99de025f360dce2c889a038f9da51;hb=de75026f5a48d3d052135a973ab4dff76c5b20f5;hp=046fb3be4277b40a867e9da8969bc79e83c28dd9;hpb=f86e7206ea94b48b94fb61007a1c5d55b8c60f45;p=ghc-hetmet.git diff --git a/rts/Stable.c b/rts/Stable.c index 046fb3b..94a756a 100644 --- a/rts/Stable.c +++ b/rts/Stable.c @@ -6,9 +6,6 @@ * * ---------------------------------------------------------------------------*/ -// Make static versions of inline functions in Stable.h: -#define RTS_STABLE_C - #include "PosixSource.h" #include "Rts.h" #include "Hash.h" @@ -218,6 +215,9 @@ lookupStableName_(StgPtr p) */ p = (StgPtr)removeIndirections((StgClosure*)p); + // register the untagged pointer. This just makes things simpler. + p = (StgPtr)UNTAG_CLOSURE((StgClosure*)p); + sn_tmp = lookupHashTable(addrToStableHash,(W_)p); sn = (StgWord)sn_tmp;