diff -r 0e4c848d5c06 -r 201c5cde25bb hotspot/src/cpu/sparc/vm/copy_sparc.hpp --- a/hotspot/src/cpu/sparc/vm/copy_sparc.hpp Tue Jun 01 11:48:33 2010 -0700 +++ b/hotspot/src/cpu/sparc/vm/copy_sparc.hpp Wed Jun 02 22:45:42 2010 -0700 @@ -154,7 +154,7 @@ } static void pd_fill_to_aligned_words(HeapWord* tohw, size_t count, juint value) { - assert(MinObjAlignmentInBytes == BytesPerLong, "need alternate implementation"); + assert(MinObjAlignmentInBytes >= BytesPerLong, "need alternate implementation"); julong* to = (julong*)tohw; julong v = ((julong)value << 32) | value; @@ -162,7 +162,7 @@ // and be equal to 0 on 64-bit platform. size_t odd = count % (BytesPerLong / HeapWordSize) ; - size_t aligned_count = align_object_size(count - odd) / HeapWordsPerLong; + size_t aligned_count = align_object_offset(count - odd) / HeapWordsPerLong; julong* end = ((julong*)tohw) + aligned_count - 1; while (to <= end) { DEBUG_ONLY(count -= BytesPerLong / HeapWordSize ;)