MCPcopy Create free account
hub / github.com/apache/impala / EmptyAllocPtr

Method EmptyAllocPtr

be/src/runtime/mem-pool.h:171–173  ·  view source on GitHub ↗

Return a dummy pointer for zero-length allocations.

Source from the content-addressed store, hash-verified

169
170 /// Return a dummy pointer for zero-length allocations.
171 static uint8_t* EmptyAllocPtr() {
172 return reinterpret_cast<uint8_t*>(&zero_length_region_);
173 }
174
175 /// Makes all allocated chunks available for re-use, but doesn't delete any chunks.
176 void Clear();

Callers 3

AllocateMethod · 0.80
FreeMethod · 0.80
ReallocateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected