[
https://issues.apache.org/jira/browse/FLINK-13985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931307#comment-16931307
]
Stephan Ewen commented on FLINK-13985:
--------------------------------------
I would put {{allocate()}} and void {{release(long)}} in a util like
{{MemoryUtils}} because we may reuse this in other parts as well.
Instantiating a DirectByteBuffer without a cleaner reflectively is the right
approach for wrapping.
We can either do this on creation of the memory segment (and then
duplicate/slice in the wrap() call) or we do this lazily in the wrap() call.
> Use native memory for managed memory.
> -------------------------------------
>
> Key: FLINK-13985
> URL: https://issues.apache.org/jira/browse/FLINK-13985
> Project: Flink
> Issue Type: Sub-task
> Reporter: Xintong Song
> Assignee: Andrey Zagrebin
> Priority: Major
>
> * Allocate memory with {{Unsafe.allocateMemory}}
> ** {{MemoryManager}}
> Implement this issue in common code paths for the legacy / new mode. This
> should only affect the GC behavior.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)