The following table provides summary descriptions of the AutoLISP memory management functions.
Memory management functions  | 
                  |
|---|---|
Function  | 
                     Description  | 
                  
(alloc int)  | 
                     Sets the segment size to a given number of nodes  | 
                  
(expand number)  | 
                     Allocates node space by requesting a specified number of segments  | 
                  
(gc)  | 
                     Forces a garbage collection, which frees up unused memory  | 
                  
(mem)  | 
                     Displays the current state of memory in AutoLISP  |