summaryrefslogtreecommitdiff
path: root/src/w32heap.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-11-09 17:57:37 +0200
committerEli Zaretskii <eliz@gnu.org>2014-11-09 17:57:37 +0200
commit2ae1e0d427eaf8583875a31525eca42c0a9ebb99 (patch)
tree65da62b52bdbaee4bf4982e1ffa5d649f68fc370 /src/w32heap.c
parentd29658759a1343995f0d8b163d7fe445dd904b81 (diff)
downloademacs-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.c4
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,