sauliusvl commented on code in PR #28252:
URL: https://github.com/apache/flink/pull/28252#discussion_r3364489148


##########
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:
   I think the LLM learned it from the openjdk source code, [this 
part](https://github.com/openjdk/jdk/blob/0ea7d890d98eda32912e9a8340020ee405042576/src/java.base/share/classes/jdk/internal/util/ArraysSupport.java#L842-L854)
 specifically



-- 
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]

Reply via email to