A method, system, and program for efficient parallel bitwise sweeps of
larger objects during garbage collection are provided. During a bitwise
sweep, a helper thread scans a mark vector looking for a consecutive
sequence of unmarked bits of a sufficient length following a marked bit.
Once a consecutive sequence of unmarked bits of a sufficient length
following a marked bit is detected, the helper thread fetches the size of
a marked object corresponding to the marked bit. If the size of the
marked object exceeds a size represented by the consecutive sequence of
unmarked bits, the remainder of the bits representing the marked object
are skipped, such that once a marked object is identified as potentially
exceeding an object fetch threshold the helper thread efficiently skips
the remainder of the bits represents the marked object and continues
scanning for a number of consecutive zeroes indicating free space.