From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid malloc patch for elf systems Date: Mon, 21 Dec 2015 03:18:03 -0800 Organization: UCLA Computer Science Department Message-ID: <5677DFEB.3@cs.ucla.edu> References: <85poynxvgy.fsf@iznogoud.viz> <567120C0.6080803@cs.ucla.edu> <85h9jhdxl2.fsf@iznogoud.viz> <56772CB2.8060004@cs.ucla.edu> <83vb7ssby6.fsf@gnu.org> 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 1450696781 8522 80.91.229.3 (21 Dec 2015 11:19:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2015 11:19:41 +0000 (UTC) Cc: wjenkner@inode.at, dalias@aerifal.cx, 22086@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 12:19:29 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aAyUz-0006bL-Ck for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 12:19:29 +0100 Original-Received: from localhost ([::1]:44108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAyUy-0006hC-IK for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 06:19:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAyUb-0006Ed-Uc for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 06:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAyUY-0000L1-O3 for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 06:19:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAyUY-0000Kx-LM for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 06:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aAyUY-0002AS-EL for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 06:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Dec 2015 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 22086-submit@debbugs.gnu.org id=B22086.14506966928264 (code B ref 22086); Mon, 21 Dec 2015 11:19:02 +0000 Original-Received: (at 22086) by debbugs.gnu.org; 21 Dec 2015 11:18:12 +0000 Original-Received: from localhost ([127.0.0.1]:58565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aAyTj-00029E-WB for submit@debbugs.gnu.org; Mon, 21 Dec 2015 06:18:12 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38075) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aAyTi-000290-Rs for 22086@debbugs.gnu.org; Mon, 21 Dec 2015 06:18:11 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3E60C1607C4; Mon, 21 Dec 2015 03:18:05 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mPN9RanXuI-G; Mon, 21 Dec 2015 03:18:04 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 448D0160D24; Mon, 21 Dec 2015 03:18:04 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZXJ9QQXUM-5f; Mon, 21 Dec 2015 03:18:04 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 200F01607C4; Mon, 21 Dec 2015 03:18:04 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <83vb7ssby6.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110235 Archived-At: Eli Zaretskii wrote: > Wouldn't memory allocated with emallooc conflict with uses of malloc > in the startup code? It shouldn't conflict, as long as memory allocated by the system malloc is freed by the system free, and memory allocated with emalloc is freed by efree. If efree is the hybrid implementation, it'd even be OK to combine the system malloc with efree, or to combine emalloc with the system free in some cases. Unless I'm misunderstanding the question? >> >Long ago as I recall, we really needed to override the C standard library on >> >some platforms, due to the funny way in which undumped storage was made >> >read-only. That need is obsolete, though, which should let us simplify things now. > Why is it obsolete? Formerly Emacs made both static storage and storage allocated via malloc read-only in the dumped Emacs, for efficiency reasons. As I recall, this required replacing the system malloc with gmalloc. This approach had a lot of problems though, and we stopped making that storage read-only a while ago.