|
Fernando,
> Is it possible to give instructions to the GC, such as "don't gc while
> in this block" or "now is a good moment to GC"?
Well you can't really turn it off completely. Some collection is
performed incrementally as the method stack frames collapse. Cycles
collection and finalization are deferred and performed by separate
processes.
What you can do, however, is force this latter type of GC to occur at a
"good moment" by executing:
MemoryManager current collectGarbage
or
MemoryManager current compact
See the method comment in MemoryManager>>collectGarbage for details.
Best regards
Andy Bower
Dolphin Support
www.object-arts.com
|