Lines Matching refs:size
31 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated, in Alloc() argument
34 if (UNLIKELY(size > kLargeSizeThreshold)) { in Alloc()
35 return AllocLargeObject(self, size, bytes_allocated, usable_size, in Alloc()
40 m = AllocFromRun(self, size, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in Alloc()
42 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated, usable_size, in Alloc()
48 for (size_t i = 0; i < size; ++i) { in Alloc()
59 inline bool RosAlloc::CanAllocFromThreadLocalRun(Thread* self, size_t size) { in CanAllocFromThreadLocalRun() argument
60 if (UNLIKELY(!IsSizeForThreadLocal(size))) { in CanAllocFromThreadLocalRun()
64 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in CanAllocFromThreadLocalRun()
78 inline void* RosAlloc::AllocFromThreadLocalRun(Thread* self, size_t size, in AllocFromThreadLocalRun() argument
81 if (UNLIKELY(!IsSizeForThreadLocal(size))) { in AllocFromThreadLocalRun()
85 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in AllocFromThreadLocalRun()
102 inline size_t RosAlloc::MaxBytesBulkAllocatedFor(size_t size) { in MaxBytesBulkAllocatedFor() argument
103 if (UNLIKELY(!IsSizeForThreadLocal(size))) { in MaxBytesBulkAllocatedFor()
104 return size; in MaxBytesBulkAllocatedFor()
107 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); in MaxBytesBulkAllocatedFor()