]> code.delx.au - gnu-emacs/blobdiff - src/w32heap.c
Simplify part of previous Fwrite_region change
[gnu-emacs] / src / w32heap.c
index 9c189dbda6dfd1e052c0c133ac4052b632137f2b..81206ce2834bcf280885987a47659b83681ce938 100644 (file)
@@ -98,7 +98,11 @@ allocate_heap (void)
 #ifdef _WIN64
   size_t size = 0x4000000000i64; /* start by asking for 32GB */
 #else
-  size_t size = 0x80000000; /* start by asking for 2GB */
+  /* 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
+     Windows on our behalf, e.g. when we pop up the file selection
+     dialog.  */
+  size_t size = 0x68000000; /* start by asking for 1.7GB */
 #endif
   void *ptr = NULL;