[PATCH 7/7] kernel32: Prefer the Mach host_statistics64(HOST_VM_INFO64) API over sysctl(HW_USERMEM) to obtain free memory.

Ken Thomases ken at codeweavers.com
Sun Feb 16 20:43:48 CST 2014


On OS X, at least, HW_USERMEM is a 32-bit value.  Furthermore, it's computed
by subtracting the amount of wired memory from HW_PHYSMEM, which is capped at
2GB.  So, it's wildly inaccurate on modern systems.

For <http://bugs.winehq.org/show_bug.cgi?id=35256>.
---
dlls/kernel32/heap.c |   47 +++++++++++++++++++++++++++++++++--------------
1 files changed, 33 insertions(+), 14 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-kernel32-Prefer-the-Mach-host_statistics64-HOST_VM_I.patch
Type: text/x-patch
Size: 2415 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140216/7868c600/attachment.bin>


More information about the wine-patches mailing list