IritTestAllDynMemory

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

IritTestAllDynMemory()  

SYNOPSIS

misc_lib/imalloc.c:102

void IritTestAllDynMemory(int PrintAllAlloc)
 

DESCRIPTION

Tests for error in dynamically allocated memory, without affecting any such allocation or allocated blocks. This routine may be used only if "IRIT_MALLOC" environment variable is set for debugging purposes and it obviously slows down running time. The following tests are being made on every block allocated, and messages are printed to stderr as needed:


 1. Overwriting beyond the end of the allocated block.
 2. Overwriting below the beginning of the allocated block.
 3. Freeing an unallocated pointer.
 4. Freeing the same pointer twice.
 5. If "IRIT_MALLOC_PTR" environment variable is set to an address, this address is being search for during allocation (IritMalloc) and announced when detected.

If this function is compiled with '#define MALLOC_DEBUG_INFO' more information is printed regarding the allocating location (filename/line number) as well as the object type involved. This also introduce some delay into the allocation process.  

PARAMETERS:

PrintAllAlloc: If TRUE, prints information all all allocated block, not just block with errors.  

FUNCTION RETURN VALUE

void  

SEE ALSO

IritFree, IritMalloc, IritRealloc, IritDebugMallocReset, , IritDebugMallocSearchPtr, IritDebugMallocAllocated,

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
SEE ALSO
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:27:57 GMT, July 20, 2024