CollectGarbage([threshold])
CollectGarbage()
without specifying the optional argument threshold
.
If you pass the optional threshold argument, however, then this value will be set as
the new garbage collector threshold. This means that whenever the garbage size
is bigger than the specified threshold in kilobytes, Hollywood will automatically
run the garbage collector.
If you leave out the optional argument, Hollywood will immediately run the garbage collector and set a new threshold that is twice the size of garbage just collected.
To get information about the state of the garbage collector, call the GCInfo() function.