< prev index next >
src/share/vm/gc/g1/g1OopClosures.inline.hpp
Print this page
@@ -176,11 +176,11 @@
#ifdef CHECK_UNHANDLED_OOPS
oopDesc* o = obj.obj();
#else
oopDesc* o = obj;
#endif // CHECK_UNHANDLED_OOPS
- assert((intptr_t)o % MinObjAlignmentInBytes == 0, "not oop aligned");
+ assert(((intptr_t)o & MinObjAlignmentInBytesMask) == 0, "not oop aligned");
assert(_g1->is_in_reserved(obj), "must be in heap");
#endif // ASSERT
assert(_from != NULL, "from region must be non-NULL");
assert(_from->is_in_reserved(p), "p is not in from");
< prev index next >