Xintong Song created FLINK-21798:
------------------------------------
Summary: Guard MemorySegment against multiple frees.
Key: FLINK-21798
URL:
https://issues.apache.org/jira/browse/FLINK-21798 Project: Flink
Issue Type: Improvement
Components: Runtime / Coordination
Reporter: Xintong Song
Fix For: 1.13.0
As discussed in FLINK-21419, freeing a memory segment for multiple times usually indicates the ownership of the segment is unclear. It would be good to gradually getting rid of all such multiple-frees.
This ticket tracks the effort that:
* Guard memory segment against multiple frees, ensuring the underlying memory is only released once.
* Introduce a configuration option to explicitly fail on multiple-frees, which helps detects the cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)