We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0eefc commit a43c4dbCopy full SHA for a43c4db
unsafe/src/main/java/org/apache/spark/unsafe/memory/TaskMemoryManager.java
@@ -64,7 +64,7 @@ public class TaskMemoryManager {
64
* size is limited by the maximum amount of data that can be stored in a long[] array, which is
65
* (2^32 - 1) * 8 bytes (or 16 gigabytes). Therefore, we cap this at 16 gigabytes.
66
*/
67
- public static final long MAXIMUM_PAGE_SIZE_BYTES = (2^32 - 1) * 8L;
+ public static final long MAXIMUM_PAGE_SIZE_BYTES = ((1L << 31) - 1) * 8L;
68
69
/** Bit mask for the lower 51 bits of a long. */
70
private static final long MASK_LONG_LOWER_51_BITS = 0x7FFFFFFFFFFFFL;
0 commit comments