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

Method InitAllocatedArea

cpp/src/arrow/memory_pool.cc:274–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected