From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: dumped_data_commit: memory exhausted Date: Mon, 18 May 2015 19:11:45 +0300 Message-ID: <83vbfpeugu.fsf@gnu.org> References: <5559877E.9010602@gmx.at> <837fs6ezn4.fsf@gnu.org> <555A04F6.7030708@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1431965570 26017 80.91.229.3 (18 May 2015 16:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2015 16:12:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: chengang31@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 18 18:12:42 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YuNej-0004ZN-R5 for ged-emacs-devel@m.gmane.org; Mon, 18 May 2015 18:12:41 +0200 Original-Received: from localhost ([::1]:41913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNei-00036W-TT for ged-emacs-devel@m.gmane.org; Mon, 18 May 2015 12:12:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNe6-0002bO-Rc for emacs-devel@gnu.org; Mon, 18 May 2015 12:12:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuNe1-0003Yc-FZ for emacs-devel@gnu.org; Mon, 18 May 2015 12:12:02 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:59619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNe1-0003Y5-7I for emacs-devel@gnu.org; Mon, 18 May 2015 12:11:57 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NOJ00G00ZGL6200@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Mon, 18 May 2015 19:11:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOJ00GIGZNV4830@a-mtaout23.012.net.il>; Mon, 18 May 2015 19:11:55 +0300 (IDT) In-reply-to: <555A04F6.7030708@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186584 Archived-At: > From: cg > Date: Mon, 18 May 2015 23:27:50 +0800 > Cc: emacs-devel@gnu.org > > On 5/18/2015 10:19 PM, Eli Zaretskii wrote: > >> Date: Mon, 18 May 2015 08:32:30 +0200 > >> From: martin rudalics > >> > >> An attempt to bootstrap trunk on Windows XP currently fails here as > >> > [...] > > > > Doesn't happen to me, strangely. But it could be borderline. > > > > It happened to me. I guess it depends on the toolchain. I am using > msys2 64-bit with the latest updates. 64-bit builds use a different size. > > Like it says: enlarge the size of dumped_data[] array. > > > > Right. I made a change to src/w32heap.c (the value is arbitrarily chose): > > - # define DUMPED_HEAP_SIZE (18*1024*1024) > +# define DUMPED_HEAP_SIZE (28*1024*1024) > > then the build went through. Arbitrary, indeed. The value needs to be as small as possible, because that's memory wasted in the dumped Emacs (because bootstrap-emacs needs significantly more space in that array). So I'd appreciate if you or someone else could come up with a smaller increment. E.g., does 19 instead of 18 work?