Home | History | Annotate | Download | only in drd

Lines Matching defs:mc

91    DRD_Chunk* mc;
102 mc = VG_(malloc)("drd.malloc_wrappers.cDC.1", sizeof(DRD_Chunk));
103 mc->data = p;
104 mc->size = size;
105 mc->where = VG_(record_ExeContext)(tid, 0);
106 VG_(HT_add_node)(s_malloc_list, mc);
124 DRD_Chunk* mc;
130 mc = VG_(HT_lookup)(s_malloc_list, (UWord)p);
131 if (mc)
133 tl_assert(p == mc->data);
134 if (mc->size > 0)
135 s_stop_using_mem_callback(mc->data, mc->size);
139 VG_(free)(mc);
180 DRD_Chunk* mc;
197 mc = VG_(HT_lookup)(s_malloc_list, (UWord)p_old);
198 if (mc == NULL)
204 old_size = mc->size;
209 mc->where = VG_(record_ExeContext)(tid, 0);
215 s_stop_using_mem_callback(mc->data + new_size, old_size - new_size);
216 mc->size = new_size;
217 mc->where = VG_(record_ExeContext)(tid, 0);
228 VG_(memcpy)(p_new, p_old, mc->size);
231 if (mc->size > 0)
232 s_stop_using_mem_callback(mc->data, mc->size);
237 mc->data = (Addr)p_new;
238 mc->size = new_size;
239 mc->where = VG_(record_ExeContext)(tid, 0);
240 VG_(HT_add_node)(s_malloc_list, mc);
284 DRD_Chunk* mc;
286 mc = VG_(HT_lookup)(s_malloc_list, (UWord)p);
288 return mc ? mc->size : 0;
321 DRD_Chunk* mc;
328 while ((mc = VG_(HT_Next)(s_malloc_list)))
330 if (mc->data <= a && a < mc->data + mc->size)
332 *data = mc->data;
333 *size = mc->size;
334 *where = mc->where;
347 DRD_Chunk* mc;
358 while ((mc = VG_(HT_Next)(s_malloc_list)))
361 nbytes += mc->size;