xintongsong commented on a change in pull request #15246:
URL: https://github.com/apache/flink/pull/15246#discussion_r595809840



##########
File path: 
flink-core/src/main/java/org/apache/flink/core/memory/HybridMemorySegment.java
##########
@@ -131,6 +131,9 @@
 
     @Override
     public void free() {
+        if (isFreed()) {
+            throw new IllegalStateException("HybridMemorySegment can be freed 
only once!");
+        }

Review comment:
       Please check this branch.
   https://github.com/xintongsong/flink/tree/flink-21728




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to