--- old/src/share/vm/prims/unsafe.cpp 2017-07-03 08:29:09.000000000 -0700 +++ new/src/share/vm/prims/unsafe.cpp 2017-07-03 08:29:09.000000000 -0700 @@ -110,7 +110,7 @@ "raw [ptr+disp] must be consistent with oop::field_base"); } jlong p_size = HeapWordSize * (jlong)(p->size()); - assert(byte_offset < p_size, "Unsafe access: offset " INT64_FORMAT " > object's size " INT64_FORMAT, byte_offset, p_size); + assert(byte_offset < p_size, "Unsafe access: offset " INT64_FORMAT " > object's size " INT64_FORMAT, (int64_t)byte_offset, (int64_t)p_size); } #endif