Fixed creation of off-heap matrix with size over 2 Gb
(int overflow in DenseOffHeapMatrixStorage.allocateMemory)
@@ -210,7 +210,7 @@ public class DenseOffHeapMatrixStorage implements MatrixStorage {
/** */
private void allocateMemory(int rows, int cols) {
- ptr = GridUnsafe.allocateMemory(rows * cols * Double.BYTES);
+ ptr = GridUnsafe.allocateMemory((long)rows * cols * Double.BYTES);
ptrInitHash = Long.hashCode(ptr);
}
