projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd0057b
)
Make cards_in_range more accurate
author
Rodrigo Kumpera
<kumpera@gmail.com>
Tue, 5 Oct 2010 02:15:22 +0000
(23:15 -0300)
committer
Rodrigo Kumpera
<kumpera@gmail.com>
Tue, 5 Oct 2010 02:15:40 +0000
(23:15 -0300)
mono/metadata/sgen-cardtable.c
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-cardtable.c
b/mono/metadata/sgen-cardtable.c
index 74c75d244a7318e8534d8d444733756e2f8b2d3b..efd07b1dd7bb2ba6b9df029f11eed44ffaedbbab 100644
(file)
--- a/
mono/metadata/sgen-cardtable.c
+++ b/
mono/metadata/sgen-cardtable.c
@@
-43,7
+43,7
@@
guint8 *sgen_cardtable;
static mword
cards_in_range (mword address, mword size)
{
- mword end = address +
size; //XXXXX should address + MAX (0, size - 1)
;
+ mword end = address +
MAX (1, size) - 1
;
return (end >> CARD_BITS) - (address >> CARD_BITS) + 1;
}