--- old/src/share/vm/utilities/array.hpp 2014-07-07 14:11:09.919586836 +0200 +++ new/src/share/vm/utilities/array.hpp 2014-07-07 14:11:09.775586837 +0200 @@ -328,6 +328,8 @@ static size_t byte_sizeof(int length) { return sizeof(Array) + MAX2(length - 1, 0) * sizeof(T); } // WhiteBox API helper. + // Can't distinguish between array of length 0 and length 1, + // will always return 0 in those cases. static int bytes_to_length(size_t bytes) { assert(is_size_aligned(bytes, BytesPerWord), "Must be, for now");