Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19460#discussion_r143564830
  
    --- Diff: 
common/unsafe/src/main/java/org/apache/spark/unsafe/array/ByteArrayMethods.java 
---
    @@ -40,6 +40,15 @@ public static int roundNumberOfBytesToNearestWord(int 
numBytes) {
         }
       }
     
    +  // Some JVMs can't allocate arrays of length Integer.MAX_VALUE; actual 
max is somewhat smaller.
    +  // Be conservative and lower the cap a little.
    +  public static int MAX_ARRAY_LENGTH = Integer.MAX_VALUE - 8;
    --- End diff --
    
    `- 15`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to