diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-18 20:40:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-18 20:40:52 +0000 |
commit | d0236d66d97b253a2f43d82e5db3cf016f4f47c3 (patch) | |
tree | 701bd58a623c019dcfc6d966236fc4c08018fa1b /winsup/cygwin/heap.cc | |
parent | 339306c5ec7dc5090f5c550dfaec25794cd94954 (diff) | |
download | cygnal-d0236d66d97b253a2f43d82e5db3cf016f4f47c3.tar.gz cygnal-d0236d66d97b253a2f43d82e5db3cf016f4f47c3.tar.bz2 cygnal-d0236d66d97b253a2f43d82e5db3cf016f4f47c3.zip |
* heap.cc (heap_init): Remove Sleep.
Diffstat (limited to 'winsup/cygwin/heap.cc')
-rw-r--r-- | winsup/cygwin/heap.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc index 3f6becf76..b45019981 100644 --- a/winsup/cygwin/heap.cc +++ b/winsup/cygwin/heap.cc @@ -76,14 +76,10 @@ heap_init () break; } if (!p) - { - if (GetLastError () == ERROR_INVALID_ADDRESS) - Sleep (2000); - api_fatal ("couldn't allocate heap, %E, base %p, top %p, " - "reserve_size %d, allocsize %d, page_const %d", - cygheap->user_heap.base, cygheap->user_heap.top, - reserve_size, allocsize, page_const); - } + api_fatal ("couldn't allocate heap, %E, base %p, top %p, " + "reserve_size %d, allocsize %d, page_const %d", + cygheap->user_heap.base, cygheap->user_heap.top, + reserve_size, allocsize, page_const); if (p != cygheap->user_heap.base) api_fatal ("heap allocated at wrong address %p (mapped) != %p (expected)", p, cygheap->user_heap.base); if (!VirtualAlloc (cygheap->user_heap.base, allocsize, MEM_COMMIT, PAGE_READWRITE)) |