Lines Matching refs:hc
1543 HP_Chunk* hc = VG_(malloc)("ms.main.rb.1", sizeof(HP_Chunk));
1544 hc->req_szB = req_szB;
1545 hc->slop_szB = slop_szB;
1546 hc->data = (Addr)p;
1547 hc->where = NULL;
1548 VG_(HT_add_node)(malloc_list, hc);
1553 hc->where = get_XCon( tid, exclude_first_entry );
1555 if (hc->where) {
1563 update_XCon(hc->where, req_szB);
1613 HP_Chunk* hc = VG_(HT_remove)(malloc_list, (UWord)p);
1614 if (NULL == hc) {
1621 if (hc->where) {
1631 update_heap_stats(-hc->req_szB, -clo_heap_admin - hc->slop_szB);
1634 update_XCon(hc->where, -hc->req_szB);
1647 VERB(3, ">>> (-%lu, -%lu)\n", hc->req_szB, hc->slop_szB);
1651 VG_(free)( hc ); hc = NULL;
1663 HP_Chunk* hc;
1670 hc = VG_(HT_remove)(malloc_list, (UWord)p_old);
1671 if (hc == NULL) {
1675 old_req_szB = hc->req_szB;
1676 old_slop_szB = hc->slop_szB;
1682 if (hc->where) {
1720 hc->data = (Addr)p_new;
1721 hc->req_szB = new_req_szB;
1722 hc->slop_szB = new_slop_szB;
1723 old_where = hc->where;
1724 hc->where = NULL;
1730 hc->where = new_where;
1743 // Now insert the new hc (with a possibly new 'data' field) into
1745 // will have removed and then re-added hc unnecessarily. But that's ok
1748 VG_(HT_add_node)(malloc_list, hc);
1825 HP_Chunk* hc = VG_(HT_lookup)( malloc_list, (UWord)p );
1827 return ( hc ? hc->req_szB + hc->slop_szB : 0 );