1. yasirs
  2. pypy

Commits

Armin Rigo  committed 0f2bc7e

Patch by Gabriel Lavoie for freebsd

  • Participants
  • Parent commits f6cc493
  • Branches default

Comments (0)

Files changed (1)

File pypy/rpython/memory/gc/env.py

View file
  • Ignore whitespace
     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