Lines Matching refs:chunks

257          if ( in_block_list (mp->chunks, mc) )  in live_block()
698 mp->chunks = VG_(HT_construct)( "MC_(create_mempool)" ); in MC_()
734 VG_(HT_ResetIter)(mp->chunks); in MC_()
735 while ( (mc = VG_(HT_Next)(mp->chunks)) ) { in MC_()
741 VG_(HT_destruct)(mp->chunks, (void (*)(void *))delete_MC_Chunk); in MC_()
762 MC_Chunk **chunks = (MC_Chunk**) VG_(HT_to_array)( mp->chunks, &n_chunks ); in check_mempool_sane() local
763 if (!chunks) in check_mempool_sane()
775 VG_(HT_ResetIter)(mp2->chunks); in check_mempool_sane()
776 while (VG_(HT_Next)(mp2->chunks)) { in check_mempool_sane()
789 VG_(ssort)((void*)chunks, n_chunks, sizeof(VgHashNode*), mp_compar); in check_mempool_sane()
793 if (chunks[i]->data > chunks[i+1]->data) { in check_mempool_sane()
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()
823 chunks[i]->data, in check_mempool_sane()
824 chunks[i]->data + chunks[i]->szB); in check_mempool_sane()
826 VG_(pp_ExeContext)(MC_(allocated_at)(chunks[i])); in check_mempool_sane()
829 VG_(free)(chunks); in check_mempool_sane()
848 MC_AllocCustom, mp->chunks); in MC_()
879 mc = VG_(HT_remove)(mp->chunks, (UWord)addr); in MC_()
902 VgHashNode** chunks; in MC_() local
917 chunks = VG_(HT_to_array) ( mp->chunks, &n_shadows ); in MC_()
919 tl_assert(chunks == NULL); in MC_()
923 tl_assert(chunks != NULL); in MC_()
928 mc = (MC_Chunk*) chunks[i]; in MC_()
948 if (VG_(HT_remove)(mp->chunks, (UWord)mc->data) == NULL) { in MC_()
950 VG_(free)(chunks); in MC_()
963 if (VG_(HT_remove)(mp->chunks, (UWord)mc->data) == NULL) { in MC_()
965 VG_(free)(chunks); in MC_()
1000 VG_(HT_add_node)( mp->chunks, mc ); in MC_()
1007 VG_(free)(chunks); in MC_()
1052 mc = VG_(HT_remove)(mp->chunks, (UWord)addrA); in MC_()
1060 VG_(HT_add_node)( mp->chunks, mc ); in MC_()