delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/24/07:57:33

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: Heap split - cannot fork:-)
24 Mar 1998 07:57:33 -0800 :
Message-ID: <01BD5722.ED184FE0.cygnus.cygwin32.developers@gater.krystalbank.msk.ru>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Hi!

Now I know why _every_ cygwin process have a splitted heap if it allocates 
more than heap_chunk_size bytes of memory (but I will not tell you why this 
happens - think yourself!-) Here is the temporary fix - reserve a large 
amount of memory for heap to avoid fork problem. The fix doesn't affect 
performance.

H:\usr\src\cygnus\cdk\winsup>diff -u shared.cc.orig shared.cc
--- shared.cc.orig      Wed Feb 11 06:15:08 1998
+++ shared.cc   Tue Mar 24 10:44:55 1998
@@ -96,7 +96,7 @@

   reg_session reg;

-  heap_chunk_in_mb = reg.get_key ().get_int ("heap_chunk_in_mb", 8);
+  heap_chunk_in_mb = reg.get_key ().get_int ("heap_chunk_in_mb", 128);
   if (heap_chunk_in_mb < 4)
     {
       heap_chunk_in_mb = 4;


--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019