Home
last modified time | relevance | path

Searched refs:bracket_size (Results 1 – 3 of 3) sorted by relevance

/art/runtime/gc/allocator/
Drosalloc-inl.h63 size_t bracket_size; in CanAllocFromThreadLocalRun() local
64 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in CanAllocFromThreadLocalRun()
84 size_t bracket_size; in AllocFromThreadLocalRun() local
85 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in AllocFromThreadLocalRun()
97 *bytes_allocated = bracket_size; in AllocFromThreadLocalRun()
106 size_t bracket_size; in MaxBytesBulkAllocatedFor() local
107 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in MaxBytesBulkAllocatedFor()
108 return numOfSlots[idx] * bracket_size; in MaxBytesBulkAllocatedFor()
Drosalloc.h125 Slot* Left(size_t bracket_size) { in Left() argument
126 return reinterpret_cast<Slot*>(reinterpret_cast<uintptr_t>(this) - bracket_size); in Left()
377 const size_t bracket_size = bracketSizes[idx]; in LastSlot() local
379 Slot* last_slot = reinterpret_cast<Slot*>(end - bracket_size); in LastSlot()
404 const size_t bracket_size = bracketSizes[idx]; in InitFreeList() local
407 for (Slot* slot = LastSlot(); slot >= first_slot; slot = slot->Left(bracket_size)) { in InitFreeList()
470 const size_t bracket_size = bracketSizes[idx]; in ToSlot() local
473 DCHECK_EQ(offset_from_slot_base % bracket_size, static_cast<size_t>(0)); in ToSlot()
474 size_t slot_idx = offset_from_slot_base / bracket_size; in ToSlot()
480 const size_t bracket_size = bracketSizes[idx]; in SlotIndex() local
[all …]
Drosalloc.cc569 const size_t bracket_size = bracketSizes[idx]; in AllocRun() local
570 const size_t num_of_bytes = num_of_slots * bracket_size; in AllocRun()
641 size_t bracket_size; in AllocFromRunThreadUnsafe() local
642 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in AllocFromRunThreadUnsafe()
646 *bytes_allocated = bracket_size; in AllocFromRunThreadUnsafe()
647 *usable_size = bracket_size; in AllocFromRunThreadUnsafe()
648 *bytes_tl_bulk_allocated = bracket_size; in AllocFromRunThreadUnsafe()
660 size_t bracket_size; in AllocFromRun() local
661 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in AllocFromRun()
722 *bytes_tl_bulk_allocated = thread_local_run->NumberOfFreeSlots() * bracket_size; in AllocFromRun()
[all …]