From b91bbad692ba00c8c04e6650510f64cee9686a65 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Fri, 31 Jan 2025 17:43:56 +0000 Subject: [PATCH] runtime: add note for the availability of the free_memory/0 implementation (#23620) --- vlib/runtime/runtime_nix.c.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/runtime/runtime_nix.c.v b/vlib/runtime/runtime_nix.c.v index 96da8aec61..3891acfe09 100644 --- a/vlib/runtime/runtime_nix.c.v +++ b/vlib/runtime/runtime_nix.c.v @@ -15,6 +15,8 @@ pub fn total_memory() usize { } // free_memory returns free physical memory found on the system. +// Note: implementation available only on Darwin, FreeBSD, Linux, OpenBSD and +// Windows. Otherwise, returns 1. pub fn free_memory() usize { return free_memory_impl() }