[ 
https://issues.apache.org/jira/browse/FLINK-21419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300006#comment-17300006
 ] 

Xintong Song commented on FLINK-21419:
--------------------------------------

Thanks for the notice, [~kezhuw].

Double-freeing of native memory should indeed be avoided. However, I'm not sure 
we want to strictly forbid a segment from being freed multiple times. I think 
it might be good enough to ensure that the {{cleaner}} is called only once in a 
thread save way.

I've opened a PR for FLINK-21728.

> Remove GC cleaner mechanism for unsafe memory segments
> ------------------------------------------------------
>
>                 Key: FLINK-21419
>                 URL: https://issues.apache.org/jira/browse/FLINK-21419
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Runtime / Coordination
>            Reporter: Xintong Song
>            Assignee: Nicholas Jiang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to