Lines Matching defs:size
49 static SimpleAllocator<T>* Instance(std::size_t size = sizeof(T))
51 static SimpleAllocator<T> ins(size);
98 ret.reserve(MmapSz / TSize + secondaryCache.size());
177 SimpleAllocator(std::size_t size = sizeof(T)) : TSize(size)
190 if (primaryCache.GetLength() == reserved && secondaryCache.size() == 0) {
269 FFRT_LOGD("coroutine release with waterline %d, cur occupied %d, cached size %d",
270 maxAllocated, curAllocated, cache.size());
273 while (cache.size() > reservedCnt) {
289 explicit QSimpleAllocator(std::size_t size = sizeof(T)) : curAllocated(0), maxAllocated(0)
292 // manually align the size to the page size
293 TSize = (size - 1 + p_size) & -p_size;
301 static QSimpleAllocator<T, MmapSz>* Instance(std::size_t size)
303 static QSimpleAllocator<T, MmapSz> ins(size);
307 static T* AllocMem(std::size_t size = sizeof(T))
309 return Instance(size)->Alloc();
312 static void FreeMem(T* p, std::size_t size = sizeof(T))
314 Instance(size)->free(p);
317 static void releaseMem(std::size_t size = sizeof(T))
319 Instance(size)->release();