Ticky.h | Ticky.h | |||
---|---|---|---|---|
skipping to change at line 22 | skipping to change at line 22 | |||
* ------------------------------------------------------------------------ -- */ | * ------------------------------------------------------------------------ -- */ | |||
#pragma once | #pragma once | |||
/* These should probably be automatically generated in order to | /* These should probably be automatically generated in order to | |||
keep them consistent with the macros that use them (which are | keep them consistent with the macros that use them (which are | |||
defined in Cmm.h) */ | defined in Cmm.h) */ | |||
/* Here are all the counter declarations: */ | /* Here are all the counter declarations: */ | |||
/* If you change this list, make the corresponding change | /* If you change this list, make the corresponding change | |||
in RTS_TICKY_SYMBOLS in rts/Linker.c */ | in RTS_TICKY_SYMBOLS in rts/RtsSymbols.c */ | |||
/* These two are explicitly declared in rts/Ticky.c, and | /* These two are explicitly declared in rts/Ticky.c, and | |||
hence should not be extern'd except when using this header | hence should not be extern'd except when using this header | |||
file from STG code; hence IN_STG_CODE */ | file from STG code; hence IN_STG_CODE */ | |||
#if IN_STG_CODE | #if IN_STG_CODE | |||
extern W_ ticky_entry_ctrs[]; | extern W_ ticky_entry_ctrs[]; | |||
extern W_ top_ct[]; | extern W_ top_ct[]; | |||
#endif | #endif | |||
skipping to change at line 201 | skipping to change at line 201 | |||
/* This is ugly, but the story is: | /* This is ugly, but the story is: | |||
We got rid of StgTicky.h, which was previously | We got rid of StgTicky.h, which was previously | |||
defining these macros for the benefit of C code | defining these macros for the benefit of C code | |||
so, we define them here instead (to be no-ops). | so, we define them here instead (to be no-ops). | |||
(since those macros are only defined in Cmm.h) | (since those macros are only defined in Cmm.h) | |||
Note that these macros must be defined whether | Note that these macros must be defined whether | |||
TICKY_TICKY is defined or not. */ | TICKY_TICKY is defined or not. */ | |||
#if !defined(CMINUSMINUS) | #if !defined(CMINUSMINUS) | |||
#if defined(TICKY_TICKY) | ||||
#define TICK_BUMP_BY(ctr,n) ctr = (StgInt) ctr + n | #define TICK_BUMP_BY(ctr,n) ctr = (StgInt) ctr + n | |||
#else | ||||
#define TICK_BUMP_BY(ctr,n) /* nothing */ | ||||
#endif | ||||
#define TICK_BUMP(ctr) TICK_BUMP_BY(ctr,1) | #define TICK_BUMP(ctr) TICK_BUMP_BY(ctr,1) | |||
#define TICK_ALLOC_PRIM(x,y,z) | #define TICK_ALLOC_PRIM(x,y,z) // FIXME: update counter | |||
#define TICK_UPD_OLD_IND() | #define TICK_UPD_OLD_IND() TICK_BUMP(UPD_OLD_IND_ctr) | |||
#define TICK_UPD_NEW_IND() | #define TICK_UPD_NEW_IND() TICK_BUMP(UPD_NEW_IND_ctr) | |||
#define TICK_UPD_SQUEEZED() | #define TICK_UPD_SQUEEZED() TICK_BUMP(UPD_SQUEEZED_ctr) | |||
#define TICK_ALLOC_HEAP_NOCTR(bytes) | #define TICK_ALLOC_HEAP_NOCTR(bytes) // FIXME: update counter | |||
#define TICK_GC_FAILED_PROMOTION() | #define TICK_GC_FAILED_PROMOTION() // FIXME: update counter | |||
#define TICK_ALLOC_TSO() | #define TICK_ALLOC_TSO() // FIXME: update counter | |||
#define TICK_ALLOC_STACK(g) | #define TICK_ALLOC_STACK(g) // FIXME: update counter | |||
#define TICK_ALLOC_UP_THK(g,s) | #define TICK_ALLOC_UP_THK(g,s) // FIXME: update counter | |||
#define TICK_ALLOC_SE_THK(g,s) | #define TICK_ALLOC_SE_THK(g,s) // FIXME: update counter | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
11 lines changed or deleted | 16 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |