Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/19222#discussion_r179497409
--- Diff:
common/unsafe/src/main/java/org/apache/spark/unsafe/memory/MemoryBlock.java ---
@@ -142,7 +143,7 @@ protected void checkSubBlockRange(long offset, long
size) {
}
if (offset + size > length) {
throw new ArrayIndexOutOfBoundsException("The sum of size " + size +
" and offset " +
- offset + " should not be larger than the length " + length + " in
the MemoryBlock");
+ offset + " should be equal to or subset of the original
MemoryBlock");
--- End diff --
I see, let me revert.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]