Lines Matching defs:cb
73 // void *cb.Allocate(uptr size);
74 // void cb.Deallocate(void *ptr);
102 void Put(Cache *c, Callback cb, Node *ptr, uptr size) {
105 c->Enqueue(cb, ptr, size);
108 cb.Recycle(ptr);
112 Drain(c, cb);
115 void NOINLINE Drain(Cache *c, Callback cb) {
121 Recycle(atomic_load_relaxed(&min_size_), cb);
124 void NOINLINE DrainAndRecycle(Cache *c, Callback cb) {
130 Recycle(0, cb);
152 void NOINLINE Recycle(uptr min_size, Callback cb)
181 DoRecycle(&tmp, cb);
184 void NOINLINE DoRecycle(Cache *c, Callback cb) {
193 cb.Recycle((Node*)b->batch[i]);
195 cb.Deallocate(b);
222 void Enqueue(Callback cb, void *ptr, uptr size) {
224 QuarantineBatch *b = (QuarantineBatch *)cb.Allocate(sizeof(*b));