< prev index next >

src/share/vm/gc/parallel/psPromotionLAB.inline.hpp

Print this page

        

@@ -38,11 +38,11 @@
 
   HeapWord* new_top = obj + size;
   // The 'new_top>obj' check is needed to detect overflow of obj+size.
   if (new_top > obj && new_top <= end()) {
     set_top(new_top);
-    assert(is_ptr_aligned(obj, SurvivorAlignmentInBytes) && is_ptr_object_aligned(new_top),
+    assert(is_aligned(obj, SurvivorAlignmentInBytes) && is_object_aligned(new_top),
            "checking alignment");
     return obj;
   } else {
     set_top(obj);
     return NULL;
< prev index next >