Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

expand

expand

type: function (subr) 
location: built-in
source file: xlsys.c  and  xldmem.c
Common LISP compatible: no
supported on: all machines

SYNTAX

(expand  <segments> )
        <segments>      -       an integer expression

DESCRIPTION

The EXPAND function expands memory by the specified number of <segments>. The expression <segments> is returned as the result. The power up default is 1000 nodes per segment. Note that ALLOC allows you to change the number of nodes per segment.

EXAMPLES

(room)                                  ; prints  Nodes:       8000
                                        ;         Free nodes:  5622
                                        ;         Segments:    6
                                        ;         Allocate:    1000
                                        ;         Total:       92586
                                        ;         Collections: 8
                                        ; returns NIL
(expand 2)                              ; add more nodes
(room)                                  ; prints  Nodes:       10000
                                        ;         Free nodes:  7608
                                        ;         Segments:    8
                                        ;         Allocate:    1000
                                        ;         Total:       112602
                                        ;         Collections: 8
                                        ; returns NIL

NOTE: When GC is called or an automatic garbage collection occurs, if the amount of free memory is still low after the garbage collection, the system attempts to add more segments (an automatic EXPAND).


Go to the first, previous, next, last section, table of contents.