--- old/src/share/vm/prims/unsafe.cpp 2017-07-02 11:30:46.000000000 +0200 +++ new/src/share/vm/prims/unsafe.cpp 2017-07-02 11:30:46.000000000 +0200 @@ -111,7 +111,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