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 09:06:20 -0800 Organization: UCLA Computer Science Department Message-ID: <5678318C.5030503@cs.ucla.edu> References: <85poynxvgy.fsf@iznogoud.viz> <567120C0.6080803@cs.ucla.edu> <85h9jhdxl2.fsf@iznogoud.viz> <56772CB2.8060004@cs.ucla.edu> <851tafesuw.fsf@iznogoud.viz> 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 1450717643 28025 80.91.229.3 (21 Dec 2015 17:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2015 17:07:23 +0000 (UTC) Cc: Rich Felker , 22086@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 18:07:13 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 1aB3vR-0003Mg-V8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 18:07:10 +0100 Original-Received: from localhost ([::1]:46266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB3vR-0006SO-43 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2015 12:07:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB3vO-0006SA-0b for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:07:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB3vK-00064I-NQ for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:07:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB3vK-00064E-Ke for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aB3vK-0003ai-89 for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2015 12:07: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 17:07: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.145071759213766 (code B ref 22086); Mon, 21 Dec 2015 17:07:02 +0000 Original-Received: (at 22086) by debbugs.gnu.org; 21 Dec 2015 17:06:32 +0000 Original-Received: from localhost ([127.0.0.1]:59043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aB3up-0003Zy-Nr for submit@debbugs.gnu.org; Mon, 21 Dec 2015 12:06:31 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49095) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aB3uo-0003Zj-G5 for 22086@debbugs.gnu.org; Mon, 21 Dec 2015 12:06:31 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6CC0E1607C4; Mon, 21 Dec 2015 09:06:24 -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 0kPhTA9_BHXp; Mon, 21 Dec 2015 09:06:23 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B522A160817; Mon, 21 Dec 2015 09:06:23 -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 xkd9Tsd1GblK; Mon, 21 Dec 2015 09:06:23 -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 94A471607C4; Mon, 21 Dec 2015 09:06:23 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <851tafesuw.fsf@iznogoud.viz> 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:110248 Archived-At: Wolfgang Jenkner wrote: >> The simpler approach is to remove gmalloc.c, and to use the system >> >memory allocator, i.e., to behave as if SYSTEM_MALLOC is defined on >> >all platforms. > The system malloc can't manage the "static heap" array implemented in > sheap.c (because usually there's no malloc_hook), so, presumably this > would be ditched as well. So... I wonder what you are proposing here. If we don't need the static heap, then let's ditch it. If we do need it, then let's have our own allocator (named emalloc, say), which uses the static heap and/or the system malloc as needed. Regardless, we shouldn't be trying to redefine 'malloc', nor should we be supplying our own allocator merely because that was a good idea back in 1989.