hotspot/src/share/vm/oops/objArrayOop.hpp
changeset 46619 a3919f5e8d2b
parent 35862 411842d0c882
child 46625 edefffab74e2
equal deleted inserted replaced
46618:d503911aa948 46619:a3919f5e8d2b
    60     const uint HeapWordsPerOop = heapOopSize/HeapWordSize;
    60     const uint HeapWordsPerOop = heapOopSize/HeapWordSize;
    61     uint old_res;
    61     uint old_res;
    62     if (HeapWordsPerOop > 0) {
    62     if (HeapWordsPerOop > 0) {
    63       old_res = length * HeapWordsPerOop;
    63       old_res = length * HeapWordsPerOop;
    64     } else {
    64     } else {
    65       old_res = align_size_up((uint)length, OopsPerHeapWord)/OopsPerHeapWord;
    65       old_res = align_up((uint)length, OopsPerHeapWord)/OopsPerHeapWord;
    66     }
    66     }
    67     assert(res == old_res, "Inconsistency between old and new.");
    67     assert(res == old_res, "Inconsistency between old and new.");
    68 #endif  // ASSERT
    68 #endif  // ASSERT
    69     return res;
    69     return res;
    70   }
    70   }