< prev index next >

src/share/vm/gc/parallel/mutableSpace.cpp

Print this page

        

*** 175,185 **** "not locked"); HeapWord* obj = top(); if (pointer_delta(end(), obj) >= size) { HeapWord* new_top = obj + size; set_top(new_top); ! assert(is_object_aligned((intptr_t)obj) && is_object_aligned((intptr_t)new_top), "checking alignment"); return obj; } else { return NULL; } --- 175,185 ---- "not locked"); HeapWord* obj = top(); if (pointer_delta(end(), obj) >= size) { HeapWord* new_top = obj + size; set_top(new_top); ! assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top), "checking alignment"); return obj; } else { return NULL; }
*** 196,206 **** // the old top value: the exchange succeeded // otherwise: the new value of the top is returned. if (result != obj) { continue; // another thread beat us to the allocation, try again } ! assert(is_object_aligned((intptr_t)obj) && is_object_aligned((intptr_t)new_top), "checking alignment"); return obj; } else { return NULL; } --- 196,206 ---- // the old top value: the exchange succeeded // otherwise: the new value of the top is returned. if (result != obj) { continue; // another thread beat us to the allocation, try again } ! assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top), "checking alignment"); return obj; } else { return NULL; }
< prev index next >