gc.os

Contains OS-level routines needed by the garbage collector.

Members

Functions

isLowOnMem
bool isLowOnMem(size_t mapped)

Check for any kind of memory pressure.

os_mem_map
void* os_mem_map(size_t nbytes)

Map memory.

os_mem_unmap
int os_mem_unmap(void* base, size_t nbytes)

Unmap memory allocated with os_mem_map().

os_physical_mem
ulong os_physical_mem()

Get the size of available physical memory

Meta

Authors

Walter Bright, David Friedman, Sean Kelly, Leandro Lucarella

Suggestion Box / Bug Report