Starting & Stopping
var gc = current(GC);
stop(gc);
var x = new(Int, $I(10)); /* Not added to GC */
show($I(running(gc))); /* 0 */
del(x); /* Must be deleted when done */
start(gc);
Garbage Collector
The GC type provides an interface to the Cello Garbage Collector. One instance of this type is created for each thread and can be retrieved using the current function. The Garbage Collector can be stopped and started using start and stop and objects can be added or removed from the Garbage Collector using set and rem.
$ alloc dealloc assign cast cmp eq neq gt lt ge le copy hash hash_data size swap current name brief description definition get set mem rem key_type val_type new del construct destruct show look print scan with start stop join running