[Mono-dev] Stop Garbage Collection for a Codeblock

Miguel de Icaza miguel at novell.com
Thu Mar 8 11:26:03 EST 2007


hello,

> Is it possible to stop the GC for garbage collecting for a code
> block? 
> This would be helpful for time critical parts.

You would have to modify the GC to expose an API that prevents it
running, then you decide what the semantics should be, but be aware that
other threads will be running (like the finalizer).

Miguel



More information about the Mono-devel-list mailing list