--- a/hotspot/src/share/vm/gc/shared/collectedHeap.inline.hpp Wed Apr 12 13:05:59 2017 +0200
+++ b/hotspot/src/share/vm/gc/shared/collectedHeap.inline.hpp Wed Apr 12 17:53:18 2017 +0200
@@ -273,7 +273,7 @@
assert(is_size_aligned(alignment_in_bytes, HeapWordSize),
"Alignment size %u is incorrect.", alignment_in_bytes);
- HeapWord* new_addr = (HeapWord*) align_ptr_up(addr, alignment_in_bytes);
+ HeapWord* new_addr = align_ptr_up(addr, alignment_in_bytes);
size_t padding = pointer_delta(new_addr, addr);
if (padding == 0) {