DMMS (Dynamic Memory Management System)

DMMS environment variables

USAGE

(bourne shell)

	DEBUG_MODE=ON
	export DEBUG_MODE
	INITMEM=0xFFFA5A5A
	export INITMEM
	BAD_POINTER=0x...
	export BAD_POINTER

DESCRIPTION

Some environment variables are recognized by DMMS for debugging or configuration purposes. (click here for an example of use)

DEBUG_MODE

May take the value of 0 or 1, ON or OFF. If set to 1, debugging mode is turned on; 0, debugging mode is turned off. This has the same effect as dmmsdbg except that it is set for the entire program execution duration.

INITMEM

May take any integer value (only decimal and hexadecimal representation are recognized). Upon allocation by hpalloc, each element of the array will be initialized to INITMEM value. Warning: this could have some performance implications.

BAD_POINTER

When an error message of the type: "block check error: internal pointer destroyed ptbloc=0x... " occurs, one can (in a subsequent execution) set BAD_POINTER environment variable to the given value of ptbloc to determine which array (pointee) is in error. The subsequent execution of the program will then terminate with a *traceback immediately after the allocation of the corrupted array. One can then determine which hpalloc (therefor which array) has been given address "ptbloc".
AUTHOR
Mario Lépine - RPN
NOTES
*The traceback information (given with the use of BAD_POINTER environment variable) can only be obtained on a machine where the traceback system software is available (SX3, SX3r currently).

SEE ALSO

( hpalloc, hpdeallc, hpcheck, bkcheck, memoirc, dmmsdbg)