| 148 | } |
| 149 | |
| 150 | char* TBlob::DoAllocate(size_t size) |
| 151 | { |
| 152 | auto* allocated = static_cast<char*>(PageAligned_ |
| 153 | ? ::aligned_malloc(size, GetPageSize()) |
| 154 | : ::malloc(size)); |
| 155 | |
| 156 | if (Y_UNLIKELY(!allocated)) { |
| 157 | AbortProcessDramatically( |
| 158 | EProcessExitCode::OutOfMemory, |
| 159 | "Out-of-memory during TBlob allocation"); |
| 160 | } |
| 161 | |
| 162 | return allocated; |
| 163 | } |
| 164 | |
| 165 | void TBlob::Allocate(size_t newCapacity) |
| 166 | { |
nothing calls this directly
no test coverage detected