This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fixing heap_chunk_in_mb to 512MB doesn't work


As far as I have understood allocation is limited to 128 MB
in cygwin 1.3.12 but one can increased this limit by setting
heap_chunk_in_mb registry key.

I tried to fix this value to 512 Mb using :
regtool set '\user\Software\Cygnus Solutions\Cygwin\heap_chunk_in_mb'
512

But when I compile this little test program it fails (Aborted (cored
dumped)):

#include <iostream>
using namespace std;

int main(){
   
   char * tab_ptr = new char [256 * 1024 * 1024];
   if ( !tab_ptr ) {
       cerr << "Malloc failed\n";
       exit(1);
   }
   delete tab_ptr;
   return 0;
}

Thanks for your help


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]