Skip to content

Commit

Permalink
runtime: add note for the availability of the free_memory/0 implement…
Browse files Browse the repository at this point in the history
…ation (#23620)
  • Loading branch information
lcheylus authored Jan 31, 2025
1 parent 78effd0 commit b91bbad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vlib/runtime/runtime_nix.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit b91bbad

Please sign in to comment.