MCPcopy Create free account
hub / github.com/apache/arrow / release

Method release

cpp/src/arrow/compute/util_internal.cc:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void TempVectorStack::release(int id, uint32_t num_bytes) {
85 ARROW_DCHECK(num_vectors_ == id + 1);
86 int64_t size = EstimatedAllocationSize(num_bytes);
87 ARROW_DCHECK(reinterpret_cast<const uint64_t*>(buffer_->mutable_data() + top_)[-1] ==
88 kGuard2);
89 ARROW_DCHECK(top_ >= size);
90 top_ -= size;
91 ARROW_DCHECK(reinterpret_cast<const uint64_t*>(buffer_->mutable_data() + top_)[0] ==
92 kGuard1);
93#ifdef ADDRESS_SANITIZER
94 ASAN_POISON_MEMORY_REGION(buffer_->mutable_data() + top_, size);
95#endif
96 --num_vectors_;
97}
98
99} // namespace util
100} // namespace arrow

Calls 1

mutable_dataMethod · 0.45

Tested by 15

TestOwnedRefNoGILMovesFunction · 0.36
test_jvm_buffer_releasedFunction · 0.36
CreateReadFunction · 0.36
CreateDirectReferenceFunction · 0.36
CreateProjectFunction · 0.36
CreateAggFunction · 0.36
CreatePlanFunction · 0.36
CreateScanAggSubstraitFunction · 0.36
SetUpMethod · 0.36