changeset 1089:dfdaf65c3423

6858886: G1: guarantee(_next_marked_bytes <= used(),"invariant") at heapRegion.hpp:359 Reviewed-by: tonyp, ysr
author apetrusenko
date Thu, 22 Oct 2009 07:43:49 -0700
parents b0b36f0de97e
children 67a9176de85c a3b9e96881fe fc06cd9b42c7
files src/share/vm/gc_implementation/g1/concurrentMark.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Tue Oct 20 11:28:25 2009 -0700
+++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Thu Oct 22 07:43:49 2009 -0700
@@ -1330,7 +1330,7 @@
       // In any case, we set the last card num.
       last_card_num = obj_last_card_num;
 
-      marked_bytes += obj_sz * HeapWordSize;
+      marked_bytes += (size_t)obj_sz * HeapWordSize;
       // Find the next marked object after this one.
       start = _bm->getNextMarkedWordAddress(start + 1, nextTop);
       _changed = true;