Correctly calculate the number of cards to be marked.
commitae25c90d61e09c7bb2620334ef7bb86f5b3eabbd
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 23 Nov 2011 22:23:37 +0000 (23 20:23 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 23 Nov 2011 22:56:59 +0000 (23 20:56 -0200)
tree98999d138c847f9942e3f291d7fbb119ee64d924
parentff47ddc6dbefdcad94409876868bd5f6e8eefbef
Correctly calculate the number of cards to be marked.

* sgen-cardtable.c (sgen_card_table_mark_range): The number of
pages to be marked must be correctly calculated to avoid the case
when the in-card offset of the start address is bigger than
of the end address and cause the last card to be skipped.

Fixes #1917
mono/metadata/sgen-cardtable.c