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

Method Allocate

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

Allocates a section of memory of 'size' bytes with DEFAULT_ALIGNMENT at the end of the the current chunk. Creates a new chunk if there aren't any chunks with enough capacity.

Source from the content-addressed store, hash-verified

122 /// of the the current chunk. Creates a new chunk if there aren't any chunks
123 /// with enough capacity.
124 uint8_t* Allocate(int64_t size) noexcept {
125 DFAKE_SCOPED_LOCK(mutex_);
126 return Allocate<false>(size, DEFAULT_ALIGNMENT);
127 }
128
129 /// Same as Allocate() except the mem limit is checked before the allocation and
130 /// this call will fail (returns NULL) if it does.

Callers 15

TestRowBatchLimitsMethod · 0.45
CreateRowBatchMethod · 0.45
CreateTuplesMethod · 0.45
TEST_FFunction · 0.45
WriteNonNullPrimitiveMethod · 0.45
WriteCollectionMethod · 0.45
TESTFunction · 0.45
DeepCopyMethod · 0.45
DeepCopyVarlenDataMethod · 0.45
DeepCopyMethod · 0.45
CreateRowBatchMethod · 0.45
RowBatchMethod · 0.45

Calls

no outgoing calls

Tested by 8

TestRowBatchLimitsMethod · 0.36
CreateRowBatchMethod · 0.36
CreateTuplesMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
CreateRowBatchMethod · 0.36
AppendValueMethod · 0.36
TESTFunction · 0.36