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

Method InitAllocatedArea

cpp/src/arrow/memory_pool.cc:279–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 static void InitAllocatedArea(uint8_t* ptr, int64_t size) {
280 DCHECK_NE(size, 0);
281 util::SafeStore(ptr + size, size ^ memory_pool::internal::kDebugXorSuffix);
282 }
283
284 static void CheckAllocatedArea(uint8_t* ptr, int64_t size, const char* context) {
285 // Check that memory wasn't clobbered at the end of the allocated area.

Callers

nothing calls this directly

Calls 1

SafeStoreFunction · 0.85

Tested by

no test coverage detected