runtime: add note for the availability of the free_memory/0 implementation (#23620)

This commit is contained in:
Laurent Cheylus 2025-01-31 17:43:56 +00:00 committed by GitHub
parent 78effd0c09
commit b91bbad692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}