hotspot/src/share/vm/gc/parallel/mutableSpace.cpp
changeset 46565 8dcbf532ea00
parent 40655 9f644073d3a0
child 46619 a3919f5e8d2b
--- a/hotspot/src/share/vm/gc/parallel/mutableSpace.cpp	Thu Jun 22 09:07:47 2017 +0200
+++ b/hotspot/src/share/vm/gc/parallel/mutableSpace.cpp	Tue Apr 11 23:45:37 2017 +0200
@@ -177,7 +177,7 @@
   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),
+    assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top),
            "checking alignment");
     return obj;
   } else {
@@ -198,7 +198,7 @@
       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),
+      assert(is_ptr_object_aligned(obj) && is_ptr_object_aligned(new_top),
              "checking alignment");
       return obj;
     } else {