Lines Matching refs:ASSERTMSG
349 ASSERTMSG(HeapArray, OS_ERR_ALLOCFROMHEAP_NOHEAP); in OSAllocFromHeap()
350 ASSERTMSG(0 < ((long) size), OS_ERR_ALLOCFROMHEAP_INVSIZE); in OSAllocFromHeap()
351 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OSAllocFromHeap()
352 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OSAllocFromHeap()
376 ASSERTMSG(OFFSET(cell, ALIGNMENT) == 0, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OSAllocFromHeap()
377 ASSERTMSG(cell->hd == NULL, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OSAllocFromHeap()
406 ASSERTMSG(hd->free == cell, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OSAllocFromHeap()
448 ASSERTMSG(HeapArray, OS_ERR_ALLOCFIXED_NOHEAP); in OSAllocFixed()
449 ASSERTMSG(start < end, OS_ERR_ALLOCFIXED_INVRANGE); in OSAllocFixed()
450 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSAllocFixed()
589 ASSERTMSG(HeapArray, OS_ERR_FREETOHEAP_NOHEAP); in OSFreeToHeap()
590 ASSERTMSG(InRange(ptr, (char*) ArenaStart + HEADERSIZE, (char*) ArenaEnd), in OSFreeToHeap()
592 ASSERTMSG(OFFSET(ptr, ALIGNMENT) == 0, OS_ERR_FREETOHEAP_INVPTR); in OSFreeToHeap()
593 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OSFreeToHeap()
598 ASSERTMSG(cell->hd == hd, OS_ERR_FREETOHEAP_INVPTR); in OSFreeToHeap()
599 ASSERTMSG(DLLookup(hd->allocated, cell),OS_ERR_FREETOHEAP_INVPTR); in OSFreeToHeap()
631 ASSERTMSG(HeapArray, OS_ERR_SETCURRENTHEAP_NOHEAP); in OSSetCurrentHeap()
632 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_SETCURRENTHEAP_INVHEAP); in OSSetCurrentHeap()
633 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_SETCURRENTHEAP_INVHEAP); in OSSetCurrentHeap()
659 ASSERTMSG(0 < maxHeaps, OS_ERR_INITALLOC_INVNUMHEAPS); in OSInitAlloc()
660 ASSERTMSG((char*) arenaStart < (char*) arenaEnd, in OSInitAlloc()
662 ASSERTMSG(maxHeaps <= in OSInitAlloc()
691 ASSERTMSG(MINOBJSIZE <= (char*) ArenaEnd - (char*) ArenaStart, in OSInitAlloc()
717 ASSERTMSG(HeapArray, OS_ERR_CREATEHEAP_NOHEAP); in OSCreateHeap()
718 ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OSCreateHeap()
721 ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OSCreateHeap()
722 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSCreateHeap()
724 ASSERTMSG(MINOBJSIZE <= (char*) end - (char*) start, in OSCreateHeap()
734 ASSERTMSG(!DLOverlap(HeapArray[heap].free, start, end), in OSCreateHeap()
736 ASSERTMSG(!DLOverlap(HeapArray[heap].allocated, start, end), in OSCreateHeap()
794 ASSERTMSG(HeapArray, OS_ERR_DESTROYHEAP_NOHEAP); in OSDestroyHeap()
795 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_DESTROYHEAP_INVHEAP); in OSDestroyHeap()
796 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_DESTROYHEAP_INVHEAP); in OSDestroyHeap()
842 ASSERTMSG(HeapArray, OS_ERR_ADDTOHEAP_NOHEAP); in OSAddToHeap()
843 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_ADDTOHEAP_INVHEAP); in OSAddToHeap()
844 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_ADDTOHEAP_INVHEAP); in OSAddToHeap()
848 ASSERTMSG(start < end, OS_ERR_ADDTOHEAP_INVRANGE); in OSAddToHeap()
851 ASSERTMSG(MINOBJSIZE <= (char*) end - (char*) start, in OSAddToHeap()
853 ASSERTMSG(RangeSubset(start, end, ArenaStart, ArenaEnd), in OSAddToHeap()
863 ASSERTMSG(!DLOverlap(HeapArray[i].free, start, end), in OSAddToHeap()
865 ASSERTMSG(!DLOverlap(HeapArray[i].allocated, start, end), in OSAddToHeap()
972 ASSERTMSG(HeapArray, OS_ERR_REFERENT_NOHEAP); in OSReferentSize()
973 ASSERTMSG(InRange(ptr, (char*) ArenaStart + HEADERSIZE, (char*) ArenaEnd), in OSReferentSize()
975 ASSERTMSG(OFFSET(ptr, ALIGNMENT) == 0, OS_ERR_REFERENT_INVPTR); in OSReferentSize()
979 ASSERTMSG(cell->hd, OS_ERR_REFERENT_INVPTR); in OSReferentSize()
980 ASSERTMSG(((char*) cell->hd - (char*) HeapArray) % sizeof(HeapDesc) == 0, in OSReferentSize()
982 ASSERTMSG(HeapArray <= cell->hd && cell->hd < &HeapArray[NumHeaps], in OSReferentSize()
984 ASSERTMSG(0 <= cell->hd->size, OS_ERR_REFERENT_INVPTR); in OSReferentSize()
985 ASSERTMSG(DLLookup(cell->hd->allocated, cell), in OSReferentSize()
1007 ASSERTMSG(HeapArray, OS_ERR_DUMPHEAP_NOHEAP); in OSDumpHeap()
1008 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_DUMPHEAP_INVHEAP); in OSDumpHeap()
1017 ASSERTMSG(0 <= OSCheckHeap(heap), OS_ERR_DUMPHEAP_BROKENHEAP); in OSDumpHeap()
1029 ASSERTMSG(hd->allocated == NULL || hd->allocated->prev == NULL, in OSDumpHeap()