Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-02-07 07:13:41 +0300
committerChristopher Faylor <me@cgf.cx>2003-02-07 07:13:41 +0300
commit1de8d16415fbcb0f608605e51a031d3e872353d9 (patch)
treec1296731b23a95f365ff78aea221f90950e493db /winsup/cygwin/heap.cc
parent45b314b1ade5a71ec784d5ba5b3c041ccebd478f (diff)
* heap.cc (heap_init): Remove debugging code.
Diffstat (limited to 'winsup/cygwin/heap.cc')
-rw-r--r--winsup/cygwin/heap.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc
index 19ce3f875..fb1e37c89 100644
--- a/winsup/cygwin/heap.cc
+++ b/winsup/cygwin/heap.cc
@@ -69,8 +69,6 @@ heap_init ()
/* Loop until we've managed to reserve an adequate amount of memory. */
char *p;
-MEMORY_BASIC_INFORMATION m;
-(void) VirtualQuery (cygheap->user_heap.base, &m, sizeof (m));
for (;;)
{
p = (char *) VirtualAlloc (cygheap->user_heap.base, reserve_size,
@@ -80,18 +78,6 @@ MEMORY_BASIC_INFORMATION m;
if ((reserve_size -= page_const) <= allocsize)
break;
}
- if (p == NULL)
-{
-system_printf ("unable to allocate heap %p, chunk %u, reserve %u, alloc %u, %E",
-cygheap->user_heap.base, cygheap->user_heap.chunk,
-reserve_size, allocsize);
-system_printf ("base %p mem alloc base %p, state %p, size %d, %E",
-cygheap->user_heap.base, m.AllocationBase, m.State, m.RegionSize);
-error_start_init ("h:/gdbtest/gdb.exe < con > con"); try_to_debug ();
- api_fatal ("unable to allocate heap %p, chunk %u, reserve %u, alloc %u, %E",
- cygheap->user_heap.base, cygheap->user_heap.chunk,
- reserve_size, allocsize);
-}
if (p != cygheap->user_heap.base)
api_fatal ("heap allocated but not at %p", cygheap->user_heap.base);
if (!VirtualAlloc (cygheap->user_heap.base, allocsize, MEM_COMMIT, PAGE_READWRITE))