yangjf2019 commented on code in PR #4892:
URL: https://github.com/apache/paimon/pull/4892#discussion_r1912790636


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/memory/MemorySegmentAllocator.java:
##########
@@ -62,9 +62,8 @@ public MemorySegment allocate() {
             checkNotNull(segment, "Allocate null segment from memory manager 
for paimon.");
             checkArgument(segment.isOffHeap(), "Segment is not off heap from 
memory manager.");
             allocatedSegments.add(segment);
-            // TODO Use getOffHeapBuffer in MemorySegment after
-            // https://issues.apache.org/jira/browse/FLINK-32213
-            return MemorySegment.wrapOffHeapMemory((ByteBuffer) 
offHeapBufferField.get(segment));
+            ByteBuffer offHeapBuffer = segment.getOffHeapBuffer();

Review Comment:
   Thanks for your remind,got it!



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