GC behavior and Allocators
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 4 10:05:30 PDT 2014
On Friday, 4 July 2014 at 14:47:12 UTC, Chris Cain wrote:
> Is there a way to lock the GC currently?
There are critical regions in core.thread. While in such a
region, your thread will never be suspended, effectively also
precluding the GC from running. They are a rather dangerous tool
though, use them only if absolutely required and on small,
controlled pieces of code.
David
More information about the Digitalmars-d
mailing list