Re: Thread-safety of buffer allocators in Java

2018-12-10 Thread Li Jin
Thanks Jacques! On Sun, Dec 9, 2018 at 6:47 AM Jacques Nadeau wrote: > Yes, that is true. Allocators, buffers and pretty much everything inbetween > is thread safe. Locking around the memory backing a buffer itself needs to > be managed in the app. You can review the doc here which talks more ab

Re: Thread-safety of buffer allocators in Java

2018-12-09 Thread Jacques Nadeau
Yes, that is true. Allocators, buffers and pretty much everything inbetween is thread safe. Locking around the memory backing a buffer itself needs to be managed in the app. You can review the doc here which talks more about the structure of the allocators: https://github.com/apache/arrow/blob/mas

Thread-safety of buffer allocators in Java

2018-12-06 Thread Li Jin
Hey folks, I am studying a bit of the buffer allocators code in the Java library. From my understanding of the code, the buffer allocators are thread safe. i.e., you can use the same buffer allocator to multiple threads, as well as creating child allocators from the same allocator and use them in