< prev index next >

src/share/vm/gc/shared/collectedHeap.inline.hpp

Print this page

        

*** 266,281 **** unsigned short alignment_in_bytes) { if (alignment_in_bytes <= ObjectAlignmentInBytes) { return addr; } ! assert(is_ptr_aligned(addr, HeapWordSize), "Address " PTR_FORMAT " is not properly aligned.", p2i(addr)); ! assert(is_size_aligned(alignment_in_bytes, HeapWordSize), "Alignment size %u is incorrect.", alignment_in_bytes); ! HeapWord* new_addr = align_ptr_up(addr, alignment_in_bytes); size_t padding = pointer_delta(new_addr, addr); if (padding == 0) { return addr; } --- 266,281 ---- unsigned short alignment_in_bytes) { if (alignment_in_bytes <= ObjectAlignmentInBytes) { return addr; } ! assert(is_aligned(addr, HeapWordSize), "Address " PTR_FORMAT " is not properly aligned.", p2i(addr)); ! assert(is_aligned(alignment_in_bytes, HeapWordSize), "Alignment size %u is incorrect.", alignment_in_bytes); ! HeapWord* new_addr = align_up(addr, alignment_in_bytes); size_t padding = pointer_delta(new_addr, addr); if (padding == 0) { return addr; }
< prev index next >