View source code
Display the source code in core/memory.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Function core.memory.GC.disable
Disables automatic garbage collections performed to minimize the
process footprint. Collections may continue to occur in instances
where the implementation deems necessary for correct program behavior,
such as during an out of memory condition. This function is reentrant,
but GC
must be called once for each call to GC
.
Unlike the
@nogc
attribute,
GC
halts
collections across all threads, yet still allows GC allocations.
Disabling collections eliminates GC pauses.
static extern(C) void disable() pure nothrow @safe;
Authors
Sean Kelly, Alex Rønne Petersen
License
Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.