davidradl commented on code in PR #28252:
URL: https://github.com/apache/flink/pull/28252#discussion_r3357307111
##########
flink-core/src/main/java/org/apache/flink/core/memory/DataOutputSerializer.java:
##########
@@ -30,6 +31,13 @@
/** A simple and efficient serializer for the {@link java.io.DataOutput}
interface. */
public class DataOutputSerializer implements DataOutputView,
MemorySegmentWritable {
+ /**
+ * Maximum array length the JVM can allocate. Some VMs reserve a few
header bytes, so we cap
Review Comment:
Do you have a reference to "Some VMs reserve a few header bytes". I would
have thought Integer.MAX_VALUE should be the value - I have not heard of
needing to only use slightly less.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]