Commits

Armin Rigo committed 0f2bc7e

Patch by Gabriel Lavoie for freebsd

Comments (0)

Files changed (1)

pypy/rpython/memory/gc/env.py

     def get_total_memory():
         return get_total_memory_darwin(get_darwin_sysctl_signed('hw.memsize'))
 
+elif sys.platform.startswith('freebsd'):
+    def get_total_memory():
+        return get_total_memory_darwin(get_darwin_sysctl_signed('hw.usermem'))
+
 else:
     def get_total_memory():
         return addressable_size       # XXX implement me for other platforms