Home | History | Annotate | Download | only in space

Lines Matching refs:allocation_size

123   size_t allocation_size = mem_map->Size();
126 byte* obj_end = reinterpret_cast<byte*>(obj) + allocation_size;
130 *bytes_allocated = allocation_size;
132 *usable_size = allocation_size;
134 num_bytes_allocated_ += allocation_size;
135 total_bytes_allocated_ += allocation_size;
149 size_t allocation_size = found->second->Size();
150 num_bytes_allocated_ -= allocation_size;
154 return allocation_size;
346 const size_t allocation_size = info->ByteSize();
347 DCHECK_GT(allocation_size, 0U);
348 DCHECK_ALIGNED(allocation_size, kAlignment);
349 info->SetByteSize(allocation_size, true); // Mark as free.
355 size_t new_free_size = allocation_size;
388 DCHECK_LE(allocation_size, num_bytes_allocated_);
389 num_bytes_allocated_ -= allocation_size;
390 madvise(obj, allocation_size, MADV_DONTNEED);
393 mprotect(obj, allocation_size, PROT_READ);
395 return allocation_size;
412 const size_t allocation_size = RoundUp(num_bytes, kAlignment);
414 temp_info.SetPrevFreeBytes(allocation_size);
425 info->SetPrevFreeBytes(info->GetPrevFreeBytes() - allocation_size);
435 if (LIKELY(free_end_ >= allocation_size)) {
438 free_end_ -= allocation_size;
444 *bytes_allocated = allocation_size;
446 *usable_size = allocation_size;
451 num_bytes_allocated_ += allocation_size;
452 total_bytes_allocated_ += allocation_size;
457 mprotect(obj, allocation_size, PROT_READ | PROT_WRITE);
460 new_info->SetByteSize(allocation_size, false);