I'm also curious. For reference, I've been using a global RootAllocator instance shared among all my classes. For unit tests, I've been creating one per test to ensure that things are being closed correctly.

Thanks,

Emilio

On 06/27/2017 08:15 AM, Li Jin wrote:
Still wondering if anyone can give some guidance?

On Thu, Jun 22, 2017 at 10:19 AM, Li Jin <ice.xell...@gmail.com> wrote:

Hello,

I am writing some code that interacts with the Arrow Java library in
Apache Spark and trying to understand the best way to use/manage buffer
allocators. I am wondering:

(1) Is buffer allocator thread safe?
(2) Should I create a root allocator (maybe one per jvm?) to allocate all
memory?

Thanks,
Li


Reply via email to