9.3 Walking the Heap: The Walk Menu

The following commands are on the Walk menu:

Command Action

Walk Heap Displays all objects in the global heap.
Walk LRU List Displays only discardable objects. Heap Walker lists objects from the least recently used to the most recently used. The object at the top of the list has been least recently used and, therefore, is most eligible for discarding.
Walk Free List Displays only free blocks of memory.
GC(0) and Walk Compacts the global heap, asking for 0 bytes, and then displays the heap.
GC(–1) and Walk Attempts to discard all discardable objects and then displays the heap.
GC(–1) and Hit A: Attempts to discard all discardable objects and then accesses drive A. This command is used to test critical error handling.
Set Swap Area Resets the code fence. The code fence defines an area of memory reserved for discardable code.
Segmentation Test Dumps the heap to a file called HWGxx.TXT and then compacts the heap.