Alexandre Julliard : ntdll: Set a proper HEAP_MIN_DATA_SIZE on 64-bit platforms.
Module: wine Branch: refs/heads/master Commit: 4ed286b43130a0e3be965eca0a91e3699d3d2aa5 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4ed286b43130a0e3be965eca... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 21 11:53:52 2006 +0200 ntdll: Set a proper HEAP_MIN_DATA_SIZE on 64-bit platforms. --- dlls/ntdll/heap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index b62c4da..a2e76dd 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -84,7 +84,8 @@ #define QUIET 1 #define NOISY 0 /* Report all errors */ /* minimum data size (without arenas) of an allocated block */ -#define HEAP_MIN_DATA_SIZE 16 +/* make sure that it's larger than a free list entry */ +#define HEAP_MIN_DATA_SIZE (2 * sizeof(struct list)) /* minimum size that must remain to shrink an allocated block */ #define HEAP_MIN_SHRINK_SIZE (HEAP_MIN_DATA_SIZE+sizeof(ARENA_FREE))
participants (1)
-
Alexandre Julliard