[
https://issues.apache.org/jira/browse/ARROW-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16628683#comment-16628683
]
Antoine Pitrou commented on ARROW-2808:
---------------------------------------
As for changing the default MemoryPool, unfortunately this may be dangerous.
Objects may hold a non-owned pointer to the old default MemoryPool (a
{{MemoryPool*}}). Imagine the following sequence:
- default MemoryPool is changed once
- an object A is created which holds a pointer to the default MemoryPool
- default MemoryPool is changed a second time
What has the MemoryPool pointer held by A become? Presumably the underlying
object is destroyed.
> [Python] Add unit tests for ProxyMemoryPool, enable new default MemoryPool to
> be constructed
> --------------------------------------------------------------------------------------------
>
> Key: ARROW-2808
> URL: https://issues.apache.org/jira/browse/ARROW-2808
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 0.12.0
>
>
> I could not find unit tests for ProxyMemoryPool
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)