X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsExternal.h;h=78b36ab7f78d80a286386425763cb9dcc0008d3d;hb=3e2cd89a3852fff389b0a66064a4bc29369e9d7f;hp=41c608dbf2639981580f424b54cd8b170c5b8ee9;hpb=b473ec1c5f526ff9c8e2224fe753d207c901aec2;p=ghc-hetmet.git diff --git a/includes/RtsExternal.h b/includes/RtsExternal.h index 41c608d..78b36ab 100644 --- a/includes/RtsExternal.h +++ b/includes/RtsExternal.h @@ -44,6 +44,7 @@ extern pid_t forkProcess(HsStablePtr *entry); extern HsBool rtsSupportsBoundThreads(void); extern StgInt newSpark (StgRegTable *reg, StgClosure *p); extern void stopTimer(void); +extern unsigned int n_capabilities; /* grimy low-level support functions defined in StgPrimFloat.c */ extern StgDouble __encodeDouble (I_ size, StgByteArray arr, I_ e); @@ -72,13 +73,13 @@ extern void* createAdjustor(int cconv, StgStablePtr hptr, StgFunPtr wptr, extern void freeHaskellFunctionPtr(void* ptr); /* Hpc stuff */ -extern int hs_hpc_module(char *modName,int modCount,int modHashNo,StgWord64 *tixArr); +extern int hs_hpc_module(char *modName,unsigned int modCount,unsigned int modHashNo,StgWord64 *tixArr); // Simple linked list of modules typedef struct _HpcModuleInfo { char *modName; // name of module - int tickCount; // number of ticks - int tickOffset; // offset into a single large .tix Array - int hashNo; // Hash number for this module's mix info + unsigned int tickCount; // number of ticks + unsigned int tickOffset; // offset into a single large .tix Array + unsigned int hashNo; // Hash number for this module's mix info StgWord64 *tixArr; // tix Array; local for this module struct _HpcModuleInfo *next; } HpcModuleInfo; @@ -123,5 +124,8 @@ extern void performMajorGC(void); extern HsInt64 getAllocations( void ); extern void revertCAFs( void ); extern void dirty_MUT_VAR(StgRegTable *reg, StgClosure *p); +extern void dirty_MVAR(StgRegTable *reg, StgClosure *p); + +extern void dirty_TSO(StgClosure *tso); #endif /* RTSEXTERNAL_H */