From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: When should ralloc.c be used? (WAS: bug#24358) Date: Sat, 22 Oct 2016 10:29:42 +0300 Message-ID: <83mvhwrgd5.fsf@gnu.org> References: <87twe6sx2g.fsf@users.sourceforge.net> <87eg51ng4r.fsf_-_@users.sourceforge.net> <87k2djwumn.fsf@users.sourceforge.net> <83h98nidvd.fsf@gnu.org> <87eg3rvtsf.fsf@users.sourceforge.net> <83k2dihpm9.fsf@gnu.org> <8760p2wzgj.fsf@users.sourceforge.net> <838ttyhhzu.fsf@gnu.org> <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477121424 12051 195.159.176.226 (22 Oct 2016 07:30:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 07:30:24 +0000 (UTC) Cc: emacs-devel@gnu.org, npostavs@users.sourceforge.net To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 22 09:30:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxqkf-0008Cc-Rt for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2016 09:29:57 +0200 Original-Received: from localhost ([::1]:35862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxqki-0000V6-4D for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2016 03:30:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxqkc-0000Uz-CD for emacs-devel@gnu.org; Sat, 22 Oct 2016 03:29:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxqkZ-00066D-93 for emacs-devel@gnu.org; Sat, 22 Oct 2016 03:29:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxqkZ-000668-5d; Sat, 22 Oct 2016 03:29:51 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4762 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bxqkY-0002w3-7O; Sat, 22 Oct 2016 03:29:50 -0400 In-reply-to: <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> (message from Paul Eggert on Fri, 21 Oct 2016 22:32:49 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:208592 Archived-At: > From: Paul Eggert > Date: Fri, 21 Oct 2016 22:32:49 -0700 > > npostavs@users.sourceforge.net wrote: > > Should ralloc.c be used on GNU/Linux systems that have GNU libc? > > Yes, with bleeding-edge glibc, as __malloc_initialize_hook has been removed. If that's the case, shouldn't we switch such glibc systems to use mmap instead? It should be free of at least some of the problems in ralloc.c, I think. Alternatively, how about supporting an external Doug Lea malloc library (assuming such a library exists and Emacs can be linked against it)? ralloc.c is generally "bad news", we've gone to non-trivial efforts during the last years to reduce its usage to the minimum. I always thought that only MSDOS and perhaps a few *BSD systems still use it. Having it creep back into GNU/Linux is really a bad regression, IMO.