--- old/src/share/vm/gc/cms/compactibleFreeListSpace.cpp 2017-06-30 11:28:08.775906801 +0200 +++ new/src/share/vm/gc/cms/compactibleFreeListSpace.cpp 2017-06-30 11:28:08.571900426 +0200 @@ -64,7 +64,7 @@ // MinChunkSize should be a multiple of MinObjAlignment and be large enough // for chunks to contain a FreeChunk. - size_t min_chunk_size_in_bytes = align_size_up(sizeof(FreeChunk), MinObjAlignmentInBytes); + size_t min_chunk_size_in_bytes = align_up(sizeof(FreeChunk), MinObjAlignmentInBytes); MinChunkSize = min_chunk_size_in_bytes / BytesPerWord; assert(IndexSetStart == 0 && IndexSetStride == 0, "already set"); @@ -2873,8 +2873,7 @@ if (span.contains(low)) { // Align low down to a card boundary so that // we can use block_offset_careful() on span boundaries. - HeapWord* aligned_low = (HeapWord*)align_size_down((uintptr_t)low, - CardTableModRefBS::card_size); + HeapWord* aligned_low = align_down(low, CardTableModRefBS::card_size); // Clip span prefix at aligned_low span = span.intersection(MemRegion(aligned_low, span.end())); } else if (low > span.end()) {