Lines Matching defs:assert
397 #include <assert.h>
399 #define assert(x) ((void)0)
2305 assert(((char*)p) >= ((char*)(av->sbrk_base)));
2310 assert(((char*)p + sz) <= ((char*)(av->top)));
2315 assert(((char*)p + sz) <= ((char*)(av->sbrk_base) + av->sbrked_mem));
2318 assert((long)(sz) >= (long)(MINSIZE));
2320 assert(prev_inuse(p));
2329 assert(! (((char*)p) >= ((char*)av->sbrk_base) &&
2333 assert(((p->prev_size + sz) & (av->pagesize-1)) == 0);
2335 assert(aligned_OK(chunk2mem(p)));
2337 /* force an appropriate assert violation if debug set */
2338 assert(!chunk_is_mmapped(p));
2363 assert(!inuse(p));
2364 assert (!chunk_is_mmapped(p));
2369 assert((sz & MALLOC_ALIGN_MASK) == 0);
2370 assert(aligned_OK(chunk2mem(p)));
2372 assert(next->prev_size == sz);
2374 assert(prev_inuse(p));
2375 assert (next == av->top || inuse(next));
2378 assert(p->fd->bk == p);
2379 assert(p->bk->fd == p);
2382 assert(sz == SIZE_SZ);
2404 assert(inuse(p));
2415 assert(next_chunk(prv) == p);
2420 assert(prev_inuse(next));
2421 assert(chunksize(next) >= MINSIZE);
2444 assert((sz & MALLOC_ALIGN_MASK) == 0);
2445 assert((long)sz - (long)MINSIZE >= 0);
2446 assert((long)sz - (long)s >= 0);
2447 assert((long)sz - (long)(s + MINSIZE) < 0);
2450 assert(aligned_OK(chunk2mem(p)));
2477 assert(prev_inuse(p));
2504 assert(sizeof(INTERNAL_SIZE_T) <= sizeof(char*));
2507 assert((MALLOC_ALIGNMENT & (MALLOC_ALIGNMENT-1)) == 0);
2514 assert((av->pagesize & (av->pagesize-1)) == 0);
2520 assert((av->max_fast & ~1) <= request2size(MAX_FAST_SIZE));
2529 assert(p == 0);
2536 assert(fastbin_index(chunksize(p)) == i);
2542 assert(have_fastchunks(av));
2553 assert(empty);
2555 assert(biton);
2566 assert(idx == i);
2568 assert(p->bk == b || chunksize(p->bk) >= chunksize(p));
2584 assert(total <= (unsigned long)(av->max_total_mem));
2585 assert(av->n_mmaps >= 0);
2586 assert(av->n_mmaps <= av->n_mmaps_max);
2587 assert(av->n_mmaps <= av->max_n_mmaps);
2588 assert(av->max_n_mmaps <= av->n_mmaps_max);
2590 assert((unsigned long)(av->sbrked_mem) <=
2593 assert((unsigned long)(av->mmapped_mem) <=
2596 assert((unsigned long)(av->max_total_mem) >=
2724 assert(old_top == initial_top(av) ||
2870 assert(correction >= 0);
2894 assert(((unsigned long)chunk2mem(brk) & MALLOC_ALIGN_MASK) == 0);
2903 assert(((INTERNAL_SIZE_T)(snd_brk) & pagemask) == 0);
3368 assert(remainder_size >= 0);
3437 assert(in_smallbin_range(nb));
3604 assert(ret == 0);
3915 assert(ncopies >= 3);
3949 assert(remainder_size >= 0);
3996 assert(aligned_OK(chunk2mem(newp)));
3997 assert((newp->prev_size == offset));
4129 assert (newsize >= nb &&
4185 assert(nclears >= 3);
4647 assert (g_last);
4648 assert ((char *) g_last->top_reserved - g_last->reserve_size <= (char *) g_last->top_allocated &&
4650 assert ((char *) g_last->top_reserved - g_last->reserve_size <= (char *) g_last->top_committed &&
4653 assert ((unsigned) g_last->top_reserved % g_regionsize == 0);
4654 assert ((unsigned) g_last->reserve_size % g_regionsize == 0);
4673 assert ((unsigned) g_last->top_committed % g_pagesize == 0);
4674 assert (0 < remaining_commit_size && remaining_commit_size % g_pagesize == 0); {
4682 assert ((unsigned) base_committed % g_pagesize == 0);
4704 assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);
4705 assert (0 < reserve_size && reserve_size % g_regionsize == 0);
4708 assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);
4728 assert ((unsigned) memory_info.BaseAddress % g_pagesize == 0);
4729 assert (0 < reserve_size && reserve_size % g_regionsize == 0);
4735 assert ((unsigned) memory_info.BaseAddress % g_regionsize == 0);
4736 assert (0 < reserve_size && reserve_size % g_regionsize == 0);
4752 assert ((unsigned) base_reserved % g_regionsize == 0);
4781 assert ((unsigned) g_last->top_committed % g_pagesize == 0);
4782 assert (0 < commit_size && commit_size % g_pagesize == 0); {
4790 assert ((unsigned) base_committed % g_pagesize == 0);
4811 assert ((unsigned) base_reserved % g_regionsize == 0);
4812 assert (0 < release_size && release_size % g_regionsize == 0); {
4837 assert ((unsigned) base_committed % g_pagesize == 0);
4838 assert (0 < decommit_size && decommit_size % g_pagesize == 0); {
4867 assert (g_last);
4868 assert ((char *) g_last->top_reserved - g_last->reserve_size <= (char *) g_last->top_allocated &&
4870 assert ((char *) g_last->top_reserved - g_last->reserve_size <= (char *) g_last->top_committed &&
4873 assert ((unsigned) g_last->top_reserved % g_regionsize == 0);
4874 assert ((unsigned) g_last->reserve_size % g_regionsize == 0);
4901 assert ((unsigned) ptr % g_regionsize == 0);
4902 assert (size % g_pagesize == 0);
4911 assert ((unsigned) ptr % g_regionsize == 0);
4941 assert ((unsigned) ptr % g_regionsize == 0);
4942 assert (size % g_pagesize == 0);
5052 * Use 'assert' rather than 'ASSERT' in WIN32 code to conform to
5053 usage of 'assert' in non-WIN32 code