Lines Matching refs:size_t

46 template<size_t MIN_SIZE, size_t MAX_SIZE>
49 static const size_t MinSize = MIN_SIZE, MaxSize = MAX_SIZE;
50 static const size_t CacheStep = 8 * 1024;
53 static size_t alignToBin(size_t size) { in alignToBin()
57 static int sizeToIdx(size_t size) { in sizeToIdx()
67 template<size_t MIN_SIZE, size_t MAX_SIZE>
79 static const size_t MinSize = MIN_SIZE, MaxSize = MAX_SIZE;
82 static size_t alignToBin(size_t size) { in alignToBin()
84 size_t minorStepExp = BitScanRev(size) - StepFactorExp; in alignToBin()
89 static int sizeToIdx(size_t size) { in sizeToIdx()
93 size_t majorStepSize = 1ULL << sizeExp; in sizeToIdx()
97 MALLOC_ASSERT(size == majorStepSize + ((size_t)minorIdx << minorStepExp), in sizeToIdx()
124 size_t usedSz;
125 size_t cachedSz;
130 void update(size_t usedSize, size_t cachedSize) { in update()
163 std::atomic<size_t> usedSize;
165 std::atomic<size_t> cachedSize;
185 LargeMemoryBlock *get(ExtMemoryPool *extMemPool, size_t size, BinBitMask *bitMask, int idx);
192 void updateUsedSize(ExtMemoryPool *extMemPool, size_t size, BinBitMask *bitMask, int idx);
201 size_t getSize() const { return cachedSize.load(std::memory_order_relaxed); } in getSize()
202 size_t getUsedSize() const { return usedSize.load(std::memory_order_relaxed); } in getUsedSize()
203 size_t reportStat(int num, FILE *f);
208 int idx, int num, size_t hugeObjectThreshold);
212 void updateUsedSize(size_t size, BinBitMask *bitMask, int idx) { in updateUsedSize()
227 void updateCachedSize(size_t size) { in updateCachedSize()
251 static size_t alignToBin(size_t size) { in alignToBin()
254 static int sizeToIdx(size_t size) { in sizeToIdx()
260 LargeMemoryBlock *get(ExtMemoryPool *extMemPool, size_t size);
267 void updateCacheState(ExtMemoryPool *extMemPool, DecreaseOrIncrease op, size_t size);
272 size_t getLOCSize() const;
273 size_t getUsedSize() const;
281 static const size_t minLargeSize = 8 * 1024,
289 static const size_t defaultMaxHugeSize = 64UL * 1024UL * 1024UL;
292 size_t hugeSizeThreshold;
330 static int sizeToIdx(size_t size);
341 LargeMemoryBlock *get(size_t size);
343 void updateCacheState(DecreaseOrIncrease op, size_t size);
355 size_t getLOCSize() const;
356 size_t getUsedSize() const;
361 static size_t alignToBin(size_t size);
363 void setHugeSizeThreshold(size_t value);
366 bool sizeInCacheRange(size_t size);
369 void registerRealloc(size_t oldSize, size_t newSize);