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.

max

yes

Int

Maximal allowed heap size in bytes. If the heap size exceeds this limit by a percentage of tolerance before garbage collection can take place, the user is prompted to increase the limit.

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 exceed the maximal heap size max or to increase threshold.

on

yes

Bool

Whether garbage collection is invoked automatically.

codeCycle

yes

Int

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


Denys Duchier, Leif Kornstaedt, Tobias Müller, Christian Schulte and Peter Van Roy
Version 1.0.1 (19990218)