This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: cygthread::cygthread() hang
Christopher Faylor wrote:
If it's just the simple change that you mentioned, I'll take care of
it.
It's trivial:
--- winsup/cygwin/cygthread.cc 2003-04-07 15:23:49.000000000 -0400
+++ winsup/cygwin/cygthread.cc 2003-04-08 11:05:02.000000000 -0400
@@ -255,7 +268,7 @@
(void) VirtualQuery (stack_ptr, &m, sizeof m);
if (m.RegionSize)
- (void) VirtualFree (m.AllocationBase, m.RegionSize, MEM_DECOMMIT);
+ (void) VirtualFree (m.AllocationBase, 0, MEM_RELEASE);
if (is_freerange)
is_freerange = false;
--
Joe Buehler