Heap
The
heap is an area of
memory reserved for data that is created at run-time (the time when the script actually executes, or is run). In contrast, the
stack is an area of memory used for data where its size is determined when the script is compiled.
LSL scripts are currently allocated 16
kb of memory, in which the compiled script's
bytecode, stack, and
heap are stored or 65
kb of memory in mono. To check the available memory, before doing any memory-intensive calls, use
llGetFreeMemory.
memory |
stack