equal
deleted
inserted
replaced
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 } |