Home | History | Annotate | Download | only in helgrind

Lines Matching defs:md

3831    MallocMeta* md = HG_(zalloc)( "hg.new_MallocMeta.1", sizeof(MallocMeta) );
3832 tl_assert(md);
3833 return md;
3835 md ) {
3836 HG_(free)(md);
3847 MallocMeta* md;
3860 md = new_MallocMeta();
3861 md->payload = p;
3862 md->szB = szB;
3863 md->where = VG_(record_ExeContext)( tid, 0 );
3864 md->thr = map_threads_lookup( tid );
3866 VG_(HT_add_node)( hg_mallocmeta_table, (VgHashNode*)md );
3911 MallocMeta *md, *old_md;
3915 md = (MallocMeta*) VG_(HT_lookup)( hg_mallocmeta_table, (UWord)p );
3916 if (!md)
3919 tl_assert(md->payload == (Addr)p);
3920 szB = md->szB;
3926 tl_assert(old_md == md);
3949 MallocMeta *md, *md_new, *md_tmp;
3956 md = (MallocMeta*) VG_(HT_lookup)( hg_mallocmeta_table, (UWord)payload );
3957 if (!md)
3960 tl_assert(md->payload == payload);
3962 if (md->szB == new_size) {
3964 md->where = VG_(record_ExeContext)(tid, 0);
3968 if (md->szB > new_size) {
3970 md->szB = new_size;
3971 md->where = VG_(record_ExeContext)(tid, 0);
3972 evh__die_mem_heap( md->payload + new_size, md->szB - new_size );
3983 evh__copy_mem( payload, p_new, md->szB );
3984 evh__new_mem_heap ( p_new + md->szB, new_size - md->szB,
3989 evh__die_mem_heap( payload, md->szB );
3992 for (i = 0; i < md->szB; i++)
4001 *md_new = *md;
4005 tl_assert(md_tmp == md);
4007 VG_(cli_free)((void*)md->payload);
4008 delete_MallocMeta(md);
4025 MallocMeta *md = VG_(HT_lookup)( hg_mallocmeta_table, (UWord)p );
4029 return ( md ? md->szB : 0 );