< prev index next >
src/share/vm/runtime/arguments.cpp
Print this page
@@ -1657,10 +1657,14 @@
assert(is_power_of_2(ObjectAlignmentInBytes), "ObjectAlignmentInBytes must be power of 2");
MinObjAlignmentInBytes = ObjectAlignmentInBytes;
assert(MinObjAlignmentInBytes >= HeapWordsPerLong * HeapWordSize, "ObjectAlignmentInBytes value is too small");
MinObjAlignment = MinObjAlignmentInBytes / HeapWordSize;
assert(MinObjAlignmentInBytes == MinObjAlignment * HeapWordSize, "ObjectAlignmentInBytes value is incorrect");
+
+ assert (is_power_of_2(MinObjAlignment), "extra sanity");
+ assert (is_power_of_2(MinObjAlignmentInBytes), "extra sanity");
+ MinObjAlignmentMask = MinObjAlignment - 1;
MinObjAlignmentInBytesMask = MinObjAlignmentInBytes - 1;
LogMinObjAlignmentInBytes = exact_log2(ObjectAlignmentInBytes);
LogMinObjAlignment = LogMinObjAlignmentInBytes - LogHeapWordSize;
< prev index next >