--- a/src/share/vm/memory/cardTableModRefBS.cpp Sat Feb 16 22:41:20 2008 -0800
+++ b/src/share/vm/memory/cardTableModRefBS.cpp Wed Feb 20 08:40:31 2008 -0800
@@ -257,7 +257,7 @@ void CardTableModRefBS::resize_covered_r
}
assert(index_for(new_region.last()) < (int) _guard_index,
"The guard card will be overwritten");
- jbyte* const end = (jbyte*) new_end_for_commit;
+ jbyte* const end = byte_after(new_region.last());
// do nothing if we resized downward.
if (entry < end) {
memset(entry, clean_card, pointer_delta(end, entry, sizeof(jbyte)));