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
a local clone.
core.internal.gc.os
Contains OS-level routines needed by the garbage collector.
License:
Authors:
Walter Bright, David Friedman, Sean Kelly, Leandro Lucarella
- nothrow @nogc bool
isLowOnMem
(size_tmapped
); - Check for any kind of memory pressure.Parameters:
size_t mapped
the amount of memory mapped by the GC in bytes Returns:true if memory is scarce - nothrow @nogc ulong
os_physical_mem
(); - Get the size of available physical memoryReturns:size of installed physical RAM
Copyright © 1999-2021 by the D Language Foundation | Page generated by
Ddoc on Fri Mar 5 21:06:10 2021