# HG changeset patch # User apetrusenko # Date 1256222629 25200 # Node ID 788af96b55e3bbb90d1b7c244eacefd413723637 # Parent a76f17a8fd775be17ba2993d66579da755041598 6858886: G1: guarantee(_next_marked_bytes <= used(),"invariant") at heapRegion.hpp:359 Reviewed-by: tonyp, ysr diff -r a76f17a8fd77 -r 788af96b55e3 src/share/vm/gc_implementation/g1/concurrentMark.cpp --- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp Fri Nov 06 17:44:04 2009 -0800 +++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp Thu Oct 22 07:43:49 2009 -0700 @@ -1327,7 +1327,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;