← 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
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/gc_mem_caches.rs).
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.