delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/05/17:57:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: fixing heap_chunk_in_mb to 512MB doesn't work
From: Christophe Trophime <trophime AT grenoble DOT cnrs DOT fr>
To: cygwin AT cygwin DOT com
Date: 04 Sep 2002 11:57:35 +0200
Message-Id: <1031133455.17672.11.camel@SNCI-PC3-15.grenoble.cnrs.fr>
Mime-Version: 1.0

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/

- Raw text -


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