Lines Matching defs:super
103 alloc_init(struct alloc_cache* alloc, struct alloc_cache* super,
107 alloc->super = super;
121 if(alloc->super)
123 if(!alloc->super) {
148 if(!alloc->super) {
154 if(!alloc->super) {
166 if(!alloc->super) {
169 if(alloc->super && alloc->quar) {
170 /* push entire list into super */
174 lock_quick_lock(&alloc->super->lock);
175 alloc_set_special_next(p, alloc->super->quar);
176 alloc->super->quar = alloc->quar;
177 alloc->super->num_quar += alloc->num_quar;
178 lock_quick_unlock(&alloc->super->lock);
227 if(alloc->super) {
230 lock_quick_lock(&alloc->super->lock);
231 if((p = alloc->super->quar)) {
232 alloc->super->quar = alloc_special_next(p);
233 alloc->super->num_quar--;
235 lock_quick_unlock(&alloc->super->lock);
252 /** push mem and some more items to the super */
259 log_assert(alloc && alloc->super &&
269 /* dump mem+list into the super quar list */
270 lock_quick_lock(&alloc->super->lock);
271 alloc_set_special_next(p, alloc->super->quar);
272 alloc->super->quar = mem;
273 alloc->super->num_quar += ALLOC_SPECIAL_MAX/2 + 1;
274 lock_quick_unlock(&alloc->super->lock);
284 if(!alloc->super) {
289 if(alloc->super && alloc->num_quar >= ALLOC_SPECIAL_MAX) {
290 /* push it to the super structure */
298 if(!alloc->super) {
306 log_info("%salloc: %d in cache, %d blocks.", alloc->super?"":"sup",
314 if(!alloc->super) {
322 if(!alloc->super) {