Garbage Collection: gc

Field

Mutable

Type

Explanation

size

no

Int

Current heap size in bytes

threshold

no

Int

Heap size in bytes when next automatic garbage collection takes place. Gets recomputed after every garbage collection.

active

no

Int

Heap size in bytes after last garbage collection.

min

yes

Int

Minimal heap size in bytes.

free

yes

1...100

Gives the percentage of free heap memory after garbage collection. For example, a value of 75 means that threshold is set to approximately: active*100/(100-75)=active*4.

tolerance

yes

1...100

Gives the percentage by which the emulator is allowed for purposes of better memory allocation to increase threshold.

on

yes

Bool

Whether garbage collection is invoked automatically.

codeCycles

yes

Int

After how many garbage collections also code garbage collection is performed (zero means no code garbage collection).


Denys Duchier, Leif Kornstaedt, Martin Homik, Tobias Müller, Christian Schulte and Peter Van Roy
Version 1.4.0 (20080702)