257 FreeBlockDictionary<Chunk_t>::verify_par_locked(); |
257 FreeBlockDictionary<Chunk_t>::verify_par_locked(); |
258 Chunk_t* res = get_chunk_from_tree(size, dither); |
258 Chunk_t* res = get_chunk_from_tree(size, dither); |
259 assert(res == NULL || res->is_free(), |
259 assert(res == NULL || res->is_free(), |
260 "Should be returning a free chunk"); |
260 "Should be returning a free chunk"); |
261 assert(dither != FreeBlockDictionary<Chunk_t>::exactly || |
261 assert(dither != FreeBlockDictionary<Chunk_t>::exactly || |
262 res->size() == size, "Not correct size"); |
262 res == NULL || res->size() == size, "Not correct size"); |
263 return res; |
263 return res; |
264 } |
264 } |
265 |
265 |
266 void return_chunk(Chunk_t* chunk) { |
266 void return_chunk(Chunk_t* chunk) { |
267 FreeBlockDictionary<Chunk_t>::verify_par_locked(); |
267 FreeBlockDictionary<Chunk_t>::verify_par_locked(); |