src/cpu/sparc/vm/copy_sparc.hpp

changeset 1934
e9ff18c4ace7
parent 1907
c18cbe5936b8
parent 1926
2d127394260e
child 2314
f95d63e2154a
     1.1 --- a/src/cpu/sparc/vm/copy_sparc.hpp	Tue Jun 01 11:48:33 2010 -0700
     1.2 +++ b/src/cpu/sparc/vm/copy_sparc.hpp	Wed Jun 02 22:45:42 2010 -0700
     1.3 @@ -154,7 +154,7 @@
     1.4  }
     1.5  
     1.6  static void pd_fill_to_aligned_words(HeapWord* tohw, size_t count, juint value) {
     1.7 -  assert(MinObjAlignmentInBytes == BytesPerLong, "need alternate implementation");
     1.8 +  assert(MinObjAlignmentInBytes >= BytesPerLong, "need alternate implementation");
     1.9  
    1.10     julong* to = (julong*)tohw;
    1.11     julong  v  = ((julong)value << 32) | value;
    1.12 @@ -162,7 +162,7 @@
    1.13     // and be equal to 0 on 64-bit platform.
    1.14     size_t odd = count % (BytesPerLong / HeapWordSize) ;
    1.15  
    1.16 -   size_t aligned_count = align_object_size(count - odd) / HeapWordsPerLong;
    1.17 +   size_t aligned_count = align_object_offset(count - odd) / HeapWordsPerLong;
    1.18     julong* end = ((julong*)tohw) + aligned_count - 1;
    1.19     while (to <= end) {
    1.20       DEBUG_ONLY(count -= BytesPerLong / HeapWordSize ;)

mercurial