aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-11-09 17:57:37 +0200
committerEli Zaretskii2014-11-09 17:57:37 +0200
commit2ae1e0d427eaf8583875a31525eca42c0a9ebb99 (patch)
tree65da62b52bdbaee4bf4982e1ffa5d649f68fc370 /src
parentd29658759a1343995f0d8b163d7fe445dd904b81 (diff)
downloademacs-2ae1e0d427eaf8583875a31525eca42c0a9ebb99.tar.gz
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')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32heap.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f9ef11c9d7..c03218c21f9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-11-09 Eli Zaretskii <eliz@gnu.org>
2
3 * w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.
4 (Bug#18995)
5
12014-11-09 Jan Djärv <jan.h.d@swipnet.se> 62014-11-09 Jan Djärv <jan.h.d@swipnet.se>
2 7
3 * nsterm.h (EmacsScroller): judge returns bool. 8 * nsterm.h (EmacsScroller): judge returns bool.
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 *
96allocate_heap (void) 96allocate_heap (void)
97{ 97{
98#ifdef _WIN64 98#ifdef _WIN64
99 size_t size = 0x4000000000ull; /* start by asking for 32GB */ 99 size_t size = 0x4000000000ull; /* start by asking for 256GB */
100#else 100#else
101 /* We used to start with 2GB here, but on Windows 7 that would leave 101 /* We used to start with 2GB here, but on Windows 7 that would leave
102 too little room in the address space for threads started by 102 too little room in the address space for threads started by
@@ -106,7 +106,7 @@ allocate_heap (void)
106#endif 106#endif
107 void *ptr = NULL; 107 void *ptr = NULL;
108 108
109 while (!ptr && size > 0x00100000) 109 while (!ptr && size >= 0x00800000)
110 { 110 {
111 reserved_heap_size = size; 111 reserved_heap_size = size;
112 ptr = VirtualAlloc (NULL, 112 ptr = VirtualAlloc (NULL,