gencgc: Introduce a new predicate, page_starts_contiguous_block_p().
authorAlastair Bridgewater <alastair.bridgewater@gmail.com>
Tue, 14 May 2013 00:57:03 +0000 (20:57 -0400)
committerAlastair Bridgewater <nyef@kana.lisphacker.com>
Mon, 20 May 2013 19:51:21 +0000 (15:51 -0400)
commit78a953d28eb00978c08da38cb1790bb03a37b171
tree70a91e0f02a14f09bf5ff9d088f89623a7922436
parent920989c0d4949557e511c7dd5b0a860964dd9720
gencgc: Introduce a new predicate, page_starts_contiguous_block_p().

  * There are a number of places in gencgc where scan_start_offset
for a page is tested for zero.  Invariably, this is actually
testing to see if a page starts a contiguous block...  Or starts
on an object boundary.

  * Extract the various tests for a zero scan_start_offset to a
new inlined predicate function, page_starts_contiguous_block_p(),
thus revealing the intent of what's going on far better than the
bare test.
src/runtime/gencgc.c