Home | History | Annotate | Download | only in space

Lines Matching defs:allocation_size

152   const size_t allocation_size = mem_map->BaseSize();
155 uint8_t* obj_end = reinterpret_cast<uint8_t*>(obj) + allocation_size;
159 *bytes_allocated = allocation_size;
161 *usable_size = allocation_size;
164 *bytes_tl_bulk_allocated = allocation_size;
165 num_bytes_allocated_ += allocation_size;
166 total_bytes_allocated_ += allocation_size;
196 size_t allocation_size = map_size;
197 num_bytes_allocated_ -= allocation_size;
201 return allocation_size;
411 const size_t allocation_size = info->ByteSize();
412 DCHECK_GT(allocation_size, 0U);
413 allocation_size, kAlignment);
414 info->SetByteSize(allocation_size, true); // Mark as free.
420 size_t new_free_size = allocation_size;
453 DCHECK_LE(allocation_size, num_bytes_allocated_);
454 num_bytes_allocated_ -= allocation_size;
455 madvise(obj, allocation_size, MADV_DONTNEED);
458 mprotect(obj, allocation_size, PROT_READ);
460 return allocation_size;
477 const size_t allocation_size = RoundUp(num_bytes, kAlignment);
479 temp_info.SetPrevFreeBytes(allocation_size);
490 info->SetPrevFreeBytes(info->GetPrevFreeBytes() - allocation_size);
500 if (LIKELY(free_end_ >= allocation_size)) {
503 free_end_ -= allocation_size;
509 *bytes_allocated = allocation_size;
511 *usable_size = allocation_size;
514 *bytes_tl_bulk_allocated = allocation_size;
518 num_bytes_allocated_ += allocation_size;
519 total_bytes_allocated_ += allocation_size;
524 mprotect(obj, allocation_size, PROT_READ | PROT_WRITE);
527 new_info->SetByteSize(allocation_size, false);