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.
| 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. |
no outgoing calls