runtime

Functions that interact with the Neon runtime system.

Summary
runtimeFunctions that interact with the Neon runtime system.
Functions
assertionsEnabledReturn TRUE if assertions are currently enabled.
executorNameReturn the name of the executor.
garbageCollectForce a garbage collection immediately.
getAllocatedObjectCountReturn the number of objects currently allocated.
moduleIsMainReturn TRUE if the calling module is being run as the main program.
setGarbageCollectionIntervalSet the interval that determines when garbage collection will be run.
setRecursionLimitSet the maximum permitted call stack depth.

Functions

assertionsEnabled

DECLARE NATIVE FUNCTION assertionsEnabled(): Boolean

Return TRUE if assertions are currently enabled.

executorName

DECLARE NATIVE FUNCTION executorName(): String

Return the name of the executor.

garbageCollect

DECLARE NATIVE FUNCTION garbageCollect()

Force a garbage collection immediately.  It is not normally necessary to call this function, since garbage collection is automatically run after a predetermined number of new allocations.  Use setGarbageCollectionInterval to change the automatic behaviour.

getAllocatedObjectCount

DECLARE NATIVE FUNCTION getAllocatedObjectCount(): Number

Return the number of objects currently allocated.  This includes objects that may be eligible for garbage collection.

moduleIsMain

DECLARE NATIVE FUNCTION moduleIsMain(): Boolean

Return TRUE if the calling module is being run as the main program.  Return FALSE if the calling module has been imported with IMPORT.

setGarbageCollectionInterval

DECLARE NATIVE FUNCTION setGarbageCollectionInterval(count: Number)

Set the interval that determines when garbage collection will be run.  The count refers to the number of allocations.  The default is 1000 allocations.  Setting this value to 0 disables automatic garbage collection.

setRecursionLimit

DECLARE NATIVE FUNCTION setRecursionLimit(depth: Number)

Set the maximum permitted call stack depth.  The default limit is 1000.  Exceeding this limit raises a <StackOverflow> exception.

DECLARE NATIVE FUNCTION assertionsEnabled(): Boolean
Return TRUE if assertions are currently enabled.
DECLARE NATIVE FUNCTION executorName(): String
Return the name of the executor.
DECLARE NATIVE FUNCTION garbageCollect()
Force a garbage collection immediately.
DECLARE NATIVE FUNCTION getAllocatedObjectCount(): Number
Return the number of objects currently allocated.
DECLARE NATIVE FUNCTION moduleIsMain(): Boolean
Return TRUE if the calling module is being run as the main program.
DECLARE NATIVE FUNCTION setGarbageCollectionInterval(count: Number)
Set the interval that determines when garbage collection will be run.
DECLARE NATIVE FUNCTION setRecursionLimit(depth: Number)
Set the maximum permitted call stack depth.
Close