• Arash Rouhani's avatar
    Rts: Consistently use StgWord for sizes of bitmaps · 43b3bab3
    Arash Rouhani authored
    A long debate is in issue #8742, but the main motivation is that this
    allows for applying a patch to reuse the function scavenge_small_bitmap
    without changing the .o-file output.
    
    Similarly, I changed the types in rts/sm/Compact.c, so I can create
    a STATIC_INLINE function for the redundant code block:
    
            while (size > 0) {
                if ((bitmap & 1) == 0) {
                    thread((StgClosure **)p);
                }
                p++;
                bitmap = bitmap >> 1;
                size--;
            }
    43b3bab3
Compact.c 23.9 KB