dafeiw commented on issue #35928:
URL: https://github.com/apache/arrow/issues/35928#issuecomment-1579453403
It seems child allocator will ask parent allocator do allocation.
I have two child allocators. The first one has `Long.MAX_VALUE`
`initReservation`, second one has 0 as `initReservation`.
`rootAllocator.newChildAllocator("A", Long.MAX_VALUE, Long.MAX_VALUE)`
`rootAllocator.newChildAllocator("B", 0, Long.MAX_VALUE)`
```
if (beyondReservation > 0 && parent != null) {
// we need to get memory from our parent.
final long parentRequest = Math.min(beyondReservation, size);
parentOutcome = parent.allocate(parentRequest, updatePeak,
forceAllocation, details);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]