• Home
  • Raw
  • Download

Lines Matching refs:hc

1126    HP_Chunk* hc = VG_(allocEltPA)(HP_chunk_poolalloc);  in record_block()  local
1127 hc->req_szB = req_szB; in record_block()
1128 hc->slop_szB = slop_szB; in record_block()
1129 hc->data = (Addr)p; in record_block()
1130 hc->where = 0; in record_block()
1131 VG_(HT_add_node)(malloc_list, hc); in record_block()
1136 hc->where = add_heap_xt( tid, req_szB, exclude_first_entry); in record_block()
1138 if (VG_(XT_n_ips_sel)(heap_xt, hc->where) > 0) { in record_block()
1193 HP_Chunk* hc = VG_(HT_remove)(malloc_list, (UWord)p); in unrecord_block() local
1194 if (NULL == hc) { in unrecord_block()
1201 if (VG_(XT_n_ips_sel)(heap_xt, hc->where) > 0) { in unrecord_block()
1211 update_heap_stats(-hc->req_szB, -clo_heap_admin - hc->slop_szB); in unrecord_block()
1214 sub_heap_xt(hc->where, hc->req_szB, exclude_first_entry); in unrecord_block()
1227 VERB(3, ">>> (-%lu, -%lu)\n", hc->req_szB, hc->slop_szB); in unrecord_block()
1231 VG_(freeEltPA) (HP_chunk_poolalloc, hc); hc = NULL; in unrecord_block()
1247 HP_Chunk* hc; in realloc_block() local
1254 hc = VG_(HT_remove)(malloc_list, (UWord)p_old); in realloc_block()
1255 if (hc == NULL) { in realloc_block()
1259 old_req_szB = hc->req_szB; in realloc_block()
1260 old_slop_szB = hc->slop_szB; in realloc_block()
1266 if (VG_(XT_n_ips_sel)(heap_xt, hc->where) > 0) { in realloc_block()
1304 hc->data = (Addr)p_new; in realloc_block()
1305 hc->req_szB = new_req_szB; in realloc_block()
1306 hc->slop_szB = new_slop_szB; in realloc_block()
1307 old_where = hc->where; in realloc_block()
1308 hc->where = 0; in realloc_block()
1312 hc->where = add_heap_xt( tid, new_req_szB, in realloc_block()
1314 if (!is_ignored && VG_(XT_n_ips_sel)(heap_xt, hc->where) > 0) { in realloc_block()
1325 if (VG_(XT_n_ips_sel)(heap_xt, hc->where) > 0 in realloc_block()
1327 hc->where = old_where; in realloc_block()
1340 VG_(HT_add_node)(malloc_list, hc); in realloc_block()
1418 HP_Chunk* hc = VG_(HT_lookup)( malloc_list, (UWord)p ); in ms_malloc_usable_size() local
1420 return ( hc ? hc->req_szB + hc->slop_szB : 0 ); in ms_malloc_usable_size()
1838 const HP_Chunk* hc = VG_(HT_Next)(malloc_list); in xtmemory_report_next_block() local
1839 if (hc) { in xtmemory_report_next_block()
1840 xta->nbytes = hc->req_szB; in xtmemory_report_next_block()
1842 *ec_alloc = VG_(XT_get_ec_from_xecu)(heap_xt, hc->where); in xtmemory_report_next_block()