Github user 10110346 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19077#discussion_r144216267
--- Diff:
common/unsafe/src/main/java/org/apache/spark/unsafe/memory/MemoryBlock.java ---
@@ -48,6 +49,15 @@ public long size() {
}
/**
+ * Reset the size of the memory block.
+ */
+ public void resetSize(long len) {
+ assert (ByteArrayMethods.roundNumberOfBytesToNearestWord(length) ==
--- End diff --
It seems that `require` can not be used in the Java code @jiangxb1987
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]