Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

3 changed files:

Changes:

  • rts/include/Cmm.h
    ... ... @@ -441,12 +441,6 @@
    441 441
     #define HP_CHK_P(bytes, fun, arg)               \
    
    442 442
        HEAP_CHECK(bytes, GC_PRIM_P(fun,arg))
    
    443 443
     
    
    444
    -// TODO I'm not seeing where ALLOC_P_TICKY is used; can it be removed?
    
    445
    -//         -NSF March 2013
    
    446
    -#define ALLOC_P_TICKY(bytes, fun, arg)          \
    
    447
    -   HP_CHK_P(bytes);                             \
    
    448
    -   TICK_ALLOC_RTS(bytes);
    
    449
    -
    
    450 444
     // Load a field out of structure with relaxed ordering.
    
    451 445
     #define RELAXED_LOAD_FIELD(fld, ptr) \
    
    452 446
         REP_##fld![(ptr) + OFFSET_##fld]
    

  • rts/include/stg/Ticky.h
    ... ... @@ -246,7 +246,7 @@ EXTERN StgInt RET_UNBOXED_TUP_hst[TICKY_BIN_COUNT] INIT({0});
    246 246
       TICK_BUMP_BY(ALLOC_THK_gds,g);\
    
    247 247
       TICK_BUMP_BY(ALLOC_THK_slp,s);\
    
    248 248
     
    
    249
    -#define TICK_ALLOC_RTS(bytes)\
    
    249
    +#define TICK_ALLOC_RTS(n)\
    
    250 250
       TICK_BUMP(ALLOC_RTS_ctr);\
    
    251 251
       TICK_BUMP_BY(ALLOC_RTS_tot,n);
    
    252 252
     #endif

  • rts/sm/Storage.c
    ... ... @@ -990,7 +990,7 @@ move_STACK (StgStack *src, StgStack *dest)
    990 990
     void
    
    991 991
     accountAllocation(Capability *cap, W_ n)
    
    992 992
     {
    
    993
    -    TICK_ALLOC_RTS(WDS(n));
    
    993
    +    TICK_ALLOC_RTS(n*sizeof(W_));
    
    994 994
         CCS_ALLOC(cap->r.rCCCS,n);
    
    995 995
         if (cap->r.rCurrentTSO != NULL) {
    
    996 996
             // cap->r.rCurrentTSO->alloc_limit -= n*sizeof(W_)