Lines Matching refs:szB
78 MC_Chunk* create_MC_Chunk ( ThreadId tid, Addr p, SizeT szB,
102 const int l = (mc->szB >= MC_(clo_freelist_big_blocks) ? 0 : 1); in add_to_freed_queue()
113 if (mc->szB >= MC_(clo_freelist_vol)) { in add_to_freed_queue()
122 VG_(free_queue_volume) += (Long)mc->szB; in add_to_freed_queue()
149 VG_(free_queue_volume) -= (Long)mc1->szB; in release_oldest_block()
178 if (VG_(addr_is_in_block)( a, mc->data, mc->szB, in MC_()
190 MC_Chunk* create_MC_Chunk ( ThreadId tid, Addr p, SizeT szB, in create_MC_Chunk() argument
195 mc->szB = szB; in create_MC_Chunk()
241 if (found_mc->szB != mc->szB in in_block_list()
340 Addr p, SizeT szB, SizeT alignB, in MC_()
350 p = (Addr)VG_(cli_malloc)( alignB, szB ); in MC_()
355 VG_(memset)((void*)p, 0, szB); in MC_()
359 VG_(memset)((void*)p, MC_(clo_malloc_fill), szB); in MC_()
365 cmalloc_bs_mallocd += (ULong)szB; in MC_()
366 mc = create_MC_Chunk (tid, p, szB, kind); in MC_()
370 MC_(make_mem_defined)( p, szB ); in MC_()
374 MC_(make_mem_undefined_w_otag)( p, szB, ecu | MC_OKIND_HEAP ); in MC_()
438 VG_(memset)((void*)mc->data, MC_(clo_free_fill), mc->szB); in die_and_free_mem()
443 MC_(make_mem_noaccess)( mc->data-rzB, mc->szB + 2*rzB ); in die_and_free_mem()
542 old_szB = old_mc->szB; in MC_()
632 return ( mc ? mc->szB : 0 ); in MC_()
643 if (!mc || mc->szB != oldSizeB || newSizeB == 0) { in MC_()
653 mc->szB = newSizeB; in MC_()
738 MC_(make_mem_noaccess)(mc->data-mp->rzB, mc->szB + 2*mp->rzB ); in MC_()
804 if (chunks[i]->data + chunks[i]->szB > chunks[i+1]->data ) { in check_mempool_sane()
822 chunks[i]->szB + 0UL, in check_mempool_sane()
824 chunks[i]->data + chunks[i]->szB); in check_mempool_sane()
832 void MC_(mempool_alloc)(ThreadId tid, Addr pool, Addr addr, SizeT szB) in MC_()
838 pool, addr, szB); in MC_()
847 MC_(new_block)(tid, addr, szB, /*ignored*/0, mp->is_zeroed, in MC_()
855 MC_(make_mem_noaccess) ( addr + szB, mp->rzB); in MC_()
888 pool, addr, mc->szB + 0UL); in MC_()
896 void MC_(mempool_trim)(Addr pool, Addr addr, SizeT szB) in MC_()
906 pool, addr, szB); in MC_()
931 hi = mc->szB == 0 ? mc->data : mc->data + mc->szB - 1; in MC_()
933 #define EXTENT_CONTAINS(x) ((addr <= (x)) && ((x) < addr + szB)) in MC_()
978 if (mc->data + szB > addr + szB) { in MC_()
979 max = mc->data + szB; in MC_()
980 hi = addr + szB; in MC_()
982 max = addr + szB; in MC_()
983 hi = mc->data + szB; in MC_()
999 mc->szB = (UInt) (hi - lo); in MC_()
1032 void MC_(mempool_change)(Addr pool, Addr addrA, Addr addrB, SizeT szB) in MC_()
1040 pool, addrA, addrB, szB); in MC_()
1059 mc->szB = szB; in MC_()
1096 nbytes += (ULong)mc->szB; in MC_()