• Home
  • Raw
  • Download

Lines Matching refs:Size

23   uptr Size;  member
27 void init(void *Ptr, uptr Size) { in init()
30 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. in init()
34 uptr getQuarantinedSize() const { return Size - sizeof(QuarantineBatch); } in getQuarantinedSize()
36 void push_back(void *Ptr, uptr Size) { in push_back()
39 this->Size += Size; in push_back()
48 DCHECK_GE(Size, sizeof(QuarantineBatch)); in merge()
53 Size += From->getQuarantinedSize(); in merge()
56 From->Size = sizeof(QuarantineBatch); in merge()
74 uptr getSize() const { return atomic_load_relaxed(&Size); } in getSize()
78 void enqueue(Callback Cb, void *Ptr, uptr Size) { in enqueue() argument
83 B->init(Ptr, Size); in enqueue()
86 List.back()->push_back(Ptr, Size); in enqueue()
87 addToSize(Size); in enqueue()
94 atomic_store_relaxed(&From->Size, 0); in transfer()
99 addToSize(B->Size); in enqueueBatch()
107 subFromSize(B->Size); in dequeueBatch()
120 DCHECK_EQ(Extracted->Size, sizeof(QuarantineBatch)); in mergeBatches()
123 ExtractedSize += Extracted->Size; in mergeBatches()
140 TotalBytes += Batch.Size; in getStats()
141 TotalOverheadBytes += Batch.Size - Batch.getQuarantinedSize(); in getStats()
164 atomic_uptr Size; variable
166 void addToSize(uptr add) { atomic_store_relaxed(&Size, getSize() + add); } in addToSize()
167 void subFromSize(uptr sub) { atomic_store_relaxed(&Size, getSize() - sub); } in subFromSize()
178 void initLinkerInitialized(uptr Size, uptr CacheSize) { in initLinkerInitialized() argument
181 CHECK((Size == 0 && CacheSize == 0) || CacheSize != 0); in initLinkerInitialized()
183 atomic_store_relaxed(&MaxSize, Size); in initLinkerInitialized()
184 atomic_store_relaxed(&MinSize, Size / 10 * 9); // 90% of max size. in initLinkerInitialized()
189 void init(uptr Size, uptr CacheSize) { in init() argument
191 initLinkerInitialized(Size, CacheSize); in init()
197 void put(CacheT *C, Callback Cb, Node *Ptr, uptr Size) { in put() argument
198 C->enqueue(Cb, Ptr, Size); in put()