FARGOS/VISTA Object Management Environment Core
..
|
#include <stdio.h>
#include <ctype.h>
Macros | |
#define | lockMEM() |
#define | unlockMEM() |
#define | DO_ABORT |
#define | ENABLE_NEW_DEBUG |
#define | BLOCK_ALIGNMENT 8 /* sizeof(double) */ |
#define | MAX_CALL_DEPTH 16 /* must be multiple of BLOCK_ALIGNMENT */ |
#define | POOL_SIZE (12 * 1024 * 1024) /* number of words in the pool */ |
#define | MAX_RANGES 12 |
#define | REC_LENGTH 0 |
#define | REC_BYTES 1 |
#define | REC_NEXT 2 |
#define | REC_TIME 3 |
#define | REC_ALLOC_NEXT 4 |
#define | REC_ALLOC_PREV 5 |
#define | REC_ALLOC_LINENUM 6 |
#define | REC_ALLOC_FILENAME (REC_ALLOC_LINENUM + MAX_CALL_DEPTH) |
#define | REC_SIGNATURE (REC_ALLOC_FILENAME + MAX_CALL_DEPTH) |
#define | WORDS_IN_RECORD (8 + (2 * (MAX_CALL_DEPTH))) |
Functions | |
void | dump_malloc_blocks (int age, int resetDumpTime) |
void | mallocStopPoint () |
void | trap_bad_assert () |
void | set_malloc_dump_time (unsigned long t, int blockSizeLimit) |
char * | malloc (unsigned int bytes) |
void | free (char *block) |
char * | realloc (char *block, unsigned int size) |
char * | calloc (unsigned int nelem, unsigned int elsize) |
Variables | |
int | trace_malloc = 0 |
int | newCallSP |
int | newCallLine [MAX_CALL_DEPTH] |
char * | newCallFile [MAX_CALL_DEPTH] |
#define BLOCK_ALIGNMENT 8 /* sizeof(double) */ |
#define DO_ABORT |
#define ENABLE_NEW_DEBUG |
void lockMEM | ( | ) |
#define MAX_CALL_DEPTH 16 /* must be multiple of BLOCK_ALIGNMENT */ |
#define MAX_RANGES 12 |
#define POOL_SIZE (12 * 1024 * 1024) /* number of words in the pool */ |
#define REC_ALLOC_FILENAME (REC_ALLOC_LINENUM + MAX_CALL_DEPTH) |
#define REC_ALLOC_LINENUM 6 |
#define REC_ALLOC_NEXT 4 |
#define REC_ALLOC_PREV 5 |
#define REC_BYTES 1 |
#define REC_LENGTH 0 |
#define REC_NEXT 2 |
#define REC_SIGNATURE (REC_ALLOC_FILENAME + MAX_CALL_DEPTH) |
#define REC_TIME 3 |
void unlockMEM | ( | ) |
#define WORDS_IN_RECORD (8 + (2 * (MAX_CALL_DEPTH))) |
char* calloc | ( | unsigned int | nelem, |
unsigned int | elsize | ||
) |
References stderr, and trace_malloc.
void dump_malloc_blocks | ( | int | age, |
int | resetDumpTime | ||
) |
References MAX_RANGES, and stderr.
void free | ( | char * | block | ) |
References stderr, and trace_malloc.
Referenced by demangleEncodedTypeName().
char* malloc | ( | unsigned int | bytes | ) |
References newCallFile, newCallLine, newCallSP, POOL_SIZE, stderr, trace_malloc, and WORDS_IN_RECORD.
Referenced by pamConvFunc().
void mallocStopPoint | ( | ) |
References stderr.
char* realloc | ( | char * | block, |
unsigned int | size | ||
) |
References stderr, and trace_malloc.
void set_malloc_dump_time | ( | unsigned long | t, |
int | blockSizeLimit | ||
) |
void trap_bad_assert | ( | ) |
References stderr.
char* newCallFile[MAX_CALL_DEPTH] |
Referenced by malloc().
int newCallLine[MAX_CALL_DEPTH] |
Referenced by malloc().
int newCallSP |
Referenced by malloc().
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |