• Home
  • Raw
  • Download

Lines Matching refs:victim

2107   mchunkptr victim;                  /* inspected/selected chunk */
2135 victim = last(q);
2138 if (victim == q)
2141 victim = last(q);
2143 if (victim != q)
2145 victim_size = chunksize(victim);
2146 unlink(victim, bck, fwd);
2147 set_inuse_bit_at_offset(victim, victim_size);
2148 check_malloced_chunk(victim, nb);
2149 return chunk2mem(victim);
2160 for (victim = last(bin); victim != bin; victim = victim->bk)
2162 victim_size = chunksize(victim);
2173 unlink(victim, bck, fwd);
2174 set_inuse_bit_at_offset(victim, victim_size);
2175 check_malloced_chunk(victim, nb);
2176 return chunk2mem(victim);
2186 if ( (victim = last_remainder->fd) != last_remainder)
2188 victim_size = chunksize(victim);
2193 remainder = chunk_at_offset(victim, nb);
2194 set_head(victim, nb | PREV_INUSE);
2198 check_malloced_chunk(victim, nb);
2199 return chunk2mem(victim);
2206 set_inuse_bit_at_offset(victim, victim_size);
2207 check_malloced_chunk(victim, nb);
2208 return chunk2mem(victim);
2213 frontlink(victim, victim_size, remainder_index, bck, fwd);
2249 for (victim = last(bin); victim != bin; victim = victim->bk)
2251 victim_size = chunksize(victim);
2256 remainder = chunk_at_offset(victim, nb);
2257 set_head(victim, nb | PREV_INUSE);
2258 unlink(victim, bck, fwd);
2262 check_malloced_chunk(victim, nb);
2263 return chunk2mem(victim);
2268 set_inuse_bit_at_offset(victim, victim_size);
2269 unlink(victim, bck, fwd);
2270 check_malloced_chunk(victim, nb);
2271 return chunk2mem(victim);
2318 (victim = mmap_chunk(nb)) != 0)
2319 return chunk2mem(victim);
2328 victim = top;
2329 set_head(victim, nb | PREV_INUSE);
2330 top = chunk_at_offset(victim, nb);
2332 check_malloced_chunk(victim, nb);
2333 return chunk2mem(victim);