Lines Matching refs:mal
21 } mal; variable
43 lock(mal.bins[i].lock); in lock_bin()
44 if (!mal.bins[i].head) in lock_bin()
45 mal.bins[i].head = mal.bins[i].tail = BIN_TO_CHUNK(i); in lock_bin()
50 unlock(mal.bins[i].lock); in unlock_bin()
110 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
116 if (mal.bins[i].head != BIN_TO_CHUNK(i) && mal.bins[i].head) {
117 fprintf(stderr, "bin %d: %p\n", i, mal.bins[i].head);
118 if (!(mal.binmap & 1ULL<<i))
120 } else if (mal.binmap & 1ULL<<i)
191 a_and_64(&mal.binmap, ~(1ULL<<i)); in unbin()
307 uint64_t mask = mal.binmap & -(1ULL<<i); in malloc()
321 c = mal.bins[j].head; in malloc()
461 lock(mal.free_lock); in __bin_chunk()
464 unlock(mal.free_lock); in __bin_chunk()
485 if (!(mal.binmap & 1ULL<<i)) in __bin_chunk()
486 a_or_64(&mal.binmap, 1ULL<<i); in __bin_chunk()
490 unlock(mal.free_lock); in __bin_chunk()
493 self->prev = mal.bins[i].tail; in __bin_chunk()