hotspot/src/share/vm/gc/shared/collectedHeap.cpp
changeset 46683 33808f7eadd5
parent 46625 edefffab74e2
child 46701 f559541c0daa
--- a/hotspot/src/share/vm/gc/shared/collectedHeap.cpp	Tue Jul 18 09:53:54 2017 +0200
+++ b/hotspot/src/share/vm/gc/shared/collectedHeap.cpp	Tue Jul 18 10:20:52 2017 +0200
@@ -457,7 +457,7 @@
 void CollectedHeap::fill_args_check(HeapWord* start, size_t words)
 {
   assert(words >= min_fill_size(), "too small to fill");
-  assert(words % MinObjAlignment == 0, "unaligned size");
+  assert(is_object_aligned(words), "unaligned size");
   assert(Universe::heap()->is_in_reserved(start), "not in heap");
   assert(Universe::heap()->is_in_reserved(start + words - 1), "not in heap");
 }