diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-11-09 17:57:37 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-11-09 17:57:37 +0200 |
commit | 2ae1e0d427eaf8583875a31525eca42c0a9ebb99 (patch) | |
tree | 65da62b52bdbaee4bf4982e1ffa5d649f68fc370 /src/w32heap.c | |
parent | d29658759a1343995f0d8b163d7fe445dd904b81 (diff) | |
download | emacs-2ae1e0d427eaf8583875a31525eca42c0a9ebb99.tar.gz emacs-2ae1e0d427eaf8583875a31525eca42c0a9ebb99.tar.bz2 emacs-2ae1e0d427eaf8583875a31525eca42c0a9ebb99.zip |
Fix bug #18995 with compiling w32heap.c with -funroll-loops.
src/w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.
Diffstat (limited to 'src/w32heap.c')
-rw-r--r-- | src/w32heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index 8ab2f58c6e7..4367f710643 100644 --- a/src/w32heap.c +++ b/src/w32heap.c @@ -96,7 +96,7 @@ static char * allocate_heap (void) { #ifdef _WIN64 - size_t size = 0x4000000000ull; /* start by asking for 32GB */ + size_t size = 0x4000000000ull; /* start by asking for 256GB */ #else /* We used to start with 2GB here, but on Windows 7 that would leave too little room in the address space for threads started by @@ -106,7 +106,7 @@ allocate_heap (void) #endif void *ptr = NULL; - while (!ptr && size > 0x00100000) + while (!ptr && size >= 0x00800000) { reserved_heap_size = size; ptr = VirtualAlloc (NULL, |