6665445: Backout change to CardTableModRefBS::resize_covered_region()
authorjmasa
Wed, 20 Feb 2008 08:40:31 -0800
changeset 181 d7590ad1142a
parent 180 09c6284b0f5e
child 182 eae79d9b9d46
6665445: Backout change to CardTableModRefBS::resize_covered_region() Summary: Backed out part of cahnge for 6624765 because of nightly testing regressions. Reviewers below were for 6624765. Reviewed-by: ysr, apetrusenko
hotspot/src/share/vm/memory/cardTableModRefBS.cpp
--- a/hotspot/src/share/vm/memory/cardTableModRefBS.cpp	Sat Feb 16 22:41:20 2008 -0800
+++ b/hotspot/src/share/vm/memory/cardTableModRefBS.cpp	Wed Feb 20 08:40:31 2008 -0800
@@ -257,7 +257,7 @@
     }
     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)));