Commit 4d751533 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-03-26 13:31:46 by simonmar]

StableNames weren't being initialized properly (the CCS field for
profiling was left out).
parent 7d6569fb
/* -----------------------------------------------------------------------------
* $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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment