[project @ 2001-03-26 13:31:46 by simonmar]
authorsimonmar <unknown>
Mon, 26 Mar 2001 13:31:46 +0000 (13:31 +0000)
committersimonmar <unknown>
Mon, 26 Mar 2001 13:31:46 +0000 (13:31 +0000)
StableNames weren't being initialized properly (the CCS field for
profiling was left out).

ghc/rts/PrimOps.hc

index e38f4f3..0a8e6f8 100644 (file)
@@ -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 {