dafeiw commented on issue #35928:
URL: https://github.com/apache/arrow/issues/35928#issuecomment-1579432390

   I got the stacktrace:
   `rootAllocator.newChildAllocator(name, Long.MAX_VALUE, Long.MAX_VALUE)`
   =>
   `Accountant#parent.allocateBytes(Long.MAX_VALUE)`
   =>
   `locallyHeldMemory.addAndGet(Long.MAX_VALUE)`
   
   After this point, if we allocate an additional buffer, let's say 64.
   
   `Long.MAX_VALUE + 64` will overflow becoming a negative number.
   
   Is it a bug?  it's not supposed to allocate more bytes if Long.MAX_VALUE is 
already allocated.


-- 
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]

Reply via email to