From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: 64-bit emacs crashes a lot Date: Sun, 18 Aug 2013 13:43:58 -0400 Message-ID: <521107DE.40803@cornell.edu> References: <520FD272.50907@alice.it> <520FDA06.8020206@cornell.edu> <520FF7FB.5030906@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376847861 10107 80.91.229.3 (18 Aug 2013 17:44:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2013 17:44:21 +0000 (UTC) Cc: emacs To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 18 19:44:23 2013 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 1VB71b-0004S5-2r for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 19:44:23 +0200 Original-Received: from localhost ([::1]:39581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB71a-0007QL-M2 for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 13:44:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB71P-0007P2-Rm for emacs-devel@gnu.org; Sun, 18 Aug 2013 13:44:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VB71I-0004Jo-Hr for emacs-devel@gnu.org; Sun, 18 Aug 2013 13:44:11 -0400 Original-Received: from limerock01.mail.cornell.edu ([128.84.12.99]:44580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB71I-0004JX-Df for emacs-devel@gnu.org; Sun, 18 Aug 2013 13:44:04 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7IHi1Zi025550; Sun, 18 Aug 2013 13:44:02 -0400 Original-Received: from [192.168.1.5] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7IHhxFj005858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 18 Aug 2013 13:44:00 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: <520FF7FB.5030906@alice.it> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.84.12.99 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:162856 Archived-At: On 8/17/2013 6:23 PM, Angelo Graziosi wrote: > Il 17/08/2013 22.16, Ken Brown ha scritto: >> >> This probably means that the static heap isn't big enough for >> --enable-checking=all on 32-bit Cygwin. I'll test it and increase it if >> necessary. I may not get to this today, but I'll do it soon. (And you >> can do it yourself locally if you're anxious to bootstrap right now.) > > OK, with 18MB it is still bootstrapping and has printed: > > ... > Finding pointers to doc strings...done > Dumping under the name emacs > Static heap usage: 16099796 of 18874368 bytes > ... > > but... really should we increase the static heap from 13 to 18 MB also > for a not-checking bootstrap? No. I made the increase to 18 conditional on ENABLE_CHECKING. > Usually, in that case, the build log shows > > ... > Static heap usage: 10273280 of 13631488 bytes > ... > Static heap usage: 5419520 of 13631488 bytes > > > Doesn't it mean that the "end" product uses only about 5.2 MB? Yes, but you still need a bigger static heap for bootstrapping. While bootstrap-emacs is being built, many *.el files get loaded, and this requires a large static heap. Then bootstrap-emacs byte-compiles those files. Now when emacs is built, the smaller *.elc files can be used, so a smaller static heap suffices for that second step. By the way, it just occurred to me that the "static heap usage" report isn't very informative. It shows how much of the static heap is in use at the time emacs (or bootstrap-emacs) is dumped, but there might have been more in use and then freed at some earlier stage. I changed sheap.c:report_sheap_usage so that it reports the maximum usage, since this is what determines how big the static heap needs to be. Ken