]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #18995 with compiling w32heap.c with -funroll-loops.
authorEli Zaretskii <eliz@gnu.org>
Sun, 9 Nov 2014 15:57:37 +0000 (17:57 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 9 Nov 2014 15:57:37 +0000 (17:57 +0200)
 src/w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.

src/ChangeLog
src/w32heap.c

index 0f9ef11c9d7ec73057ad68f56cc20d3dacb94ba7..c03218c21f99053b6e77c578d7585053f2db17c0 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32heap.c (allocate_heap): Set the lower limit of heap at 8MB.
+       (Bug#18995)
+
 2014-11-09  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsterm.h (EmacsScroller): judge returns bool.
index 8ab2f58c6e70c6a80849f9ec15163393e9e4638d..4367f71064316ad1a5586e2a745dab92cd070245 100644 (file)
@@ -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,