Rts: Consistently use StgWord for sizes of bitmaps
authorArash Rouhani <rarash@student.chalmers.se>
Thu, 13 Feb 2014 14:28:11 +0000 (15:28 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 29 Apr 2014 19:34:08 +0000 (20:34 +0100)
commit43b3bab38eafef8c02a09fb4ff1e757f5cba6073
tree3e86f1eb988adbad8c446b5ec6365151e0503b25
parentb7278d3d7bbe384eee7538b1e50bb741e99fb01d
Rts: Consistently use StgWord for sizes of bitmaps

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--;
        }
includes/rts/storage/ClosureMacros.h
rts/sm/Compact.c
rts/sm/Scav.c