diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-14 18:30:21 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-14 18:30:21 +0000 |
commit | 1f48d233ebee49407b8900a2214e5d582be86555 (patch) | |
tree | 3b8f8938e036098f25412fe960424d18d619b28f /winsup/cygwin/heap.cc | |
parent | 3aca3cb6362f429219a8af9b2d5f3d16f05be390 (diff) | |
download | cygnal-1f48d233ebee49407b8900a2214e5d582be86555.tar.gz cygnal-1f48d233ebee49407b8900a2214e5d582be86555.tar.bz2 cygnal-1f48d233ebee49407b8900a2214e5d582be86555.zip |
* heap.cc (heap_init): Revert 2005-09-11 patch as it seems to inexplicably
cause problems with emacs.
Diffstat (limited to 'winsup/cygwin/heap.cc')
-rw-r--r-- | winsup/cygwin/heap.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc index 7dd74979c..8e420b301 100644 --- a/winsup/cygwin/heap.cc +++ b/winsup/cygwin/heap.cc @@ -34,6 +34,7 @@ extern "C" size_t getpagesize (); void heap_init () { + const DWORD alloctype = MEM_RESERVE; /* If we're the forkee, we must allocate the heap at exactly the same place as our parent. If not, we don't care where it ends up. */ @@ -47,7 +48,7 @@ heap_init () * to assure contiguous memory. */ cygheap->user_heap.ptr = cygheap->user_heap.top = cygheap->user_heap.base = - VirtualAlloc (NULL, cygheap->user_heap.chunk, MEM_RESERVE | MEM_TOP_DOWN, PAGE_NOACCESS); + VirtualAlloc (NULL, cygheap->user_heap.chunk, alloctype, PAGE_NOACCESS); if (cygheap->user_heap.base) break; cygheap->user_heap.chunk -= 1 * 1024 * 1024; @@ -70,7 +71,7 @@ heap_init () while (1) { p = (char *) VirtualAlloc (cygheap->user_heap.base, reserve_size, - MEM_RESERVE, PAGE_READWRITE); + alloctype, PAGE_READWRITE); if (p) break; if ((reserve_size -= page_const) < allocsize) |