From: simonmar Date: Mon, 26 Mar 2001 13:31:46 +0000 (+0000) Subject: [project @ 2001-03-26 13:31:46 by simonmar] X-Git-Tag: Approximately_9120_patches~2313 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4d75153372c1f3c1cfc1cb555cf86c91d07a36c6;p=ghc-hetmet.git [project @ 2001-03-26 13:31:46 by simonmar] StableNames weren't being initialized properly (the CCS field for profiling was left out). --- diff --git a/ghc/rts/PrimOps.hc b/ghc/rts/PrimOps.hc index e38f4f3..0a8e6f8 100644 --- a/ghc/rts/PrimOps.hc +++ b/ghc/rts/PrimOps.hc @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: PrimOps.hc,v 1.76 2001/03/25 13:52:46 qrczak Exp $ + * $Id: PrimOps.hc,v 1.77 2001/03/26 13:31:46 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -1084,7 +1084,7 @@ FN_(makeStableNamezh_fast) /* Is there already a StableName for this heap object? */ if (stable_ptr_table[index].sn_obj == NULL) { sn_obj = (StgStableName *) (Hp - sizeofW(StgStableName) + 1); - sn_obj->header.info = &stg_STABLE_NAME_info; + SET_HDR(sn_obj,&STABLE_NAME_info,CCCS); sn_obj->sn = index; stable_ptr_table[index].sn_obj = (StgClosure *)sn_obj; } else {