Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19222#discussion_r179485268
  
    --- 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 --
    
    the previous message looks more clear.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to