[
https://issues.apache.org/jira/browse/FLINK-21798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17303069#comment-17303069
]
Xintong Song commented on FLINK-21798:
--------------------------------------
It is the current status that unsafe segments are only allocated via
{{MemoryManager}}. However, I'm not sure we want such a restriction. I don't
see a good reason to forbid unsafe usages outside {{MemoryManager}}.
Moreover, while multiple-frees on a heap/direct segment may not be as severe as
on a unsafe segment, they are still good to be prevented. Those segments cannot
be guarded by {{MemoryManager}}.
> 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
> Priority: Critical
> Labels: Umbrella
> 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 serves as an umbrella for detected multiple-free cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)