← All docs

gc_mem_caches()

Drains runtime small-block allocator caches and returns the number of cached bytes released.

gc_mem_caches()

function gc_mem_caches(): int

Drains runtime small-block allocator caches and returns the number of cached bytes released.

Parameters: none.

Returns: int

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gc_mem_caches is implemented in the compiler, see the internals page.