CurtHagenlocher commented on code in PR #525:
URL: https://github.com/apache/arrow-dotnet/pull/525#discussion_r4786689834
##########
src/Apache.Arrow/Arrays/ArrayDataConcatenator.cs:
##########
@@ -1596,12 +1596,12 @@ private IMemoryOwner<byte> AllocateBitmap(int
bitLength, out Span<byte> destinat
return owner;
}
- private static ArrowBuffer BuildBuffer(IMemoryOwner<byte> owner,
int byteLength)
+ private ArrowBuffer BuildBuffer(IMemoryOwner<byte> owner, int
byteLength)
{
// Allocators don't have to return zeroed memory, and may
return more than was requested,
// so clear everything past the written bytes explicitly
owner.Memory.Span.Slice(byteLength).Clear();
- return new ArrowBuffer(owner);
+ return new ArrowBuffer(owner, (_allocator ??
MemoryAllocator.Default.Value).Lifetime);
Review Comment:
I think I'm going to need to port over more of the changes from #504;
alternatively, submit a followup PR.
--
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]