2362N/A * or visit www.oracle.com if you need additional information or have any
0N/A#include "debug_util.h"
0N/A DASSERTMSG( header->linenumber > 0 && header->linenumber < MAX_LINENUM, "Header corruption, bad line number" );
0N/A DASSERTMSG( header->size <= DMemGlobalState.biggestBlock, "Header corruption, block size is too large");
0N/A DASSERTMSG( header->order <= DMemGlobalState.totalAllocs, "Header corruption, block order out of range");
0N/A DASSERTMSG( DMem_ClientCheckPtr(tail, sizeof(MemoryBlockTail)), "Tail corruption, invalid pointer");
0N/A DASSERTMSG( DMem_ClientCheckPtr(memptr, DMEM_MIN(MAX_CHECK_BYTES,header->size)), "Block memory invalid" );
0N/A DASSERTMSG( DMem_ClientCheckPtr(header->listEnter, sizeof(MemoryListLink)), "Header corruption, alloc list pointer invalid" );
0N/A * 'guard' areas to catch overwrite/underwrite bugs