Skip to content

Commit a43c4db

Browse files
committed
Fix pow
1 parent 2c0eefc commit a43c4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unsafe/src/main/java/org/apache/spark/unsafe/memory/TaskMemoryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class TaskMemoryManager {
6464
* size is limited by the maximum amount of data that can be stored in a long[] array, which is
6565
* (2^32 - 1) * 8 bytes (or 16 gigabytes). Therefore, we cap this at 16 gigabytes.
6666
*/
67-
public static final long MAXIMUM_PAGE_SIZE_BYTES = (2^32 - 1) * 8L;
67+
public static final long MAXIMUM_PAGE_SIZE_BYTES = ((1L << 31) - 1) * 8L;
6868

6969
/** Bit mask for the lower 51 bits of a long. */
7070
private static final long MASK_LONG_LOWER_51_BITS = 0x7FFFFFFFFFFFFL;

0 commit comments

Comments
 (0)