Lines Matching refs:hc
1504 HP_Chunk* hc = VG_(malloc)("ms.main.rb.1", sizeof(HP_Chunk));
1505 hc->req_szB = req_szB;
1506 hc->slop_szB = slop_szB;
1507 hc->data = (Addr)p;
1508 hc->where = NULL;
1509 VG_(HT_add_node)(malloc_list, hc);
1514 hc->where = get_XCon( tid, exclude_first_entry );
1516 if (hc->where) {
1524 update_XCon(hc->where, req_szB);
1574 HP_Chunk* hc = VG_(HT_remove)(malloc_list, (UWord)p);
1575 if (NULL == hc) {
1582 if (hc->where) {
1592 update_heap_stats(-hc->req_szB, -clo_heap_admin - hc->slop_szB);
1595 update_XCon(hc->where, -hc->req_szB);
1608 VERB(3, ">>> (-%lu, -%lu)\n", hc->req_szB, hc->slop_szB);
1612 VG_(free)( hc ); hc = NULL;
1624 HP_Chunk* hc;
1631 hc = VG_(HT_remove)(malloc_list, (UWord)p_old);
1632 if (hc == NULL) {
1636 old_req_szB = hc->req_szB;
1637 old_slop_szB = hc->slop_szB;
1643 if (hc->where) {
1681 hc->data = (Addr)p_new;
1682 hc->req_szB = new_req_szB;
1683 hc->slop_szB = new_slop_szB;
1684 old_where = hc->where;
1685 hc->where = NULL;
1691 hc->where = new_where;
1704 // Now insert the new hc (with a possibly new 'data' field) into
1706 // will have removed and then re-added hc unnecessarily. But that's ok
1709 VG_(HT_add_node)(malloc_list, hc);
1787 HP_Chunk* hc = VG_(HT_lookup)( malloc_list, (UWord)p );
1789 return ( hc ? hc->req_szB + hc->slop_szB : 0 );