michalursa commented on a change in pull request #11335:
URL: https://github.com/apache/arrow/pull/11335#discussion_r724524942
##########
File path: cpp/src/arrow/compute/exec/util.h
##########
@@ -93,19 +93,27 @@ class TempVectorStack {
}
void alloc(uint32_t num_bytes, uint8_t** data, int* id) {
int64_t old_top = top_;
- top_ += PaddedAllocationSize(num_bytes);
+ top_ += PaddedAllocationSize(num_bytes) + 2 * sizeof(uint64_t);
// Stack overflow check
ARROW_DCHECK(top_ <= buffer_size_);
- *data = buffer_->mutable_data() + old_top;
+ *data = buffer_->mutable_data() + old_top + sizeof(uint64_t);
Review comment:
changed
--
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]