From unknown Mon Aug 18 21:50:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27416 <27416@debbugs.gnu.org> To: bug#27416 <27416@debbugs.gnu.org> Subject: Status: [PROPOSED] Simplify malloc replacement on glibc Reply-To: bug#27416 <27416@debbugs.gnu.org> Date: Tue, 19 Aug 2025 04:50:49 +0000 retitle 27416 [PROPOSED] Simplify malloc replacement on glibc reassign 27416 emacs submitter 27416 Paul Eggert severity 27416 wishlist tag 27416 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 20:53:57 2017 Received: (at submit) by debbugs.gnu.org; 18 Jun 2017 00:53:57 +0000 Received: from localhost ([127.0.0.1]:53852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMOTU-0004lX-PV for submit@debbugs.gnu.org; Sat, 17 Jun 2017 20:53:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMOTT-0004lK-Ah for submit@debbugs.gnu.org; Sat, 17 Jun 2017 20:53:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMOTN-0005UD-2v for submit@debbugs.gnu.org; Sat, 17 Jun 2017 20:53:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMOTM-0005U9-Vp for submit@debbugs.gnu.org; Sat, 17 Jun 2017 20:53:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMOTI-0002Gh-Ru for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 20:53:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMOTD-0005P0-UR for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 20:53:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51350) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMOTD-0005O2-Ky for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2017 20:53:39 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 92AF51600FF for ; Sat, 17 Jun 2017 17:28:31 -0700 (PDT) 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 UF13I-jdlJ64; Sat, 17 Jun 2017 17:28:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2D8601600FE; Sat, 17 Jun 2017 17:28:29 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 sM5Yz8S1v8GC; Sat, 17 Jun 2017 17:28:29 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0AD041600EF; Sat, 17 Jun 2017 17:28:29 -0700 (PDT) From: Paul Eggert To: bug-gnu-emacs@gnu.org Subject: [PROPOSED] Simplify malloc replacement on glibc Date: Sat, 17 Jun 2017 17:28:18 -0700 Message-Id: <20170618002818.20744-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit Cc: Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This avoids the need to build lib/e-gettime.o etc. on glibc platforms, as plain lib/gettime.o will do. * configure.ac (HAVE___LIBC_MALLOC): New symbol. * lib/Makefile.in (all): Don=E2=80=99t build libegnu.a if HAVE___LIBC_MAL= LOC. * lib/gnulib.mk.in: Regenerate. * src/Makefile.in (HAVE___LIBC_MALLOC): New macro. (LIBEGNU_ARCHIVE): Use it, so that libegnu.a is not needed if HAVE___LIBC_MALLOC. * src/conf_post.h (malloc, realloc, aligned_alloc, calloc, free): Do not define as macros if HAVE___LIBC_MALLOC, since they are now defined as functions in that case. * src/gmalloc.c (hybrid_malloc, hybrid_realloc, hybrid_calloc) (hybrid_aligned_alloc, hybrid_free): Define to plain malloc etc., if HAVE___LIBC_MALLOC, since the hybrid functions replace the standard ones in that case. (malloc, realloc, calloc, free): Define to __libc_malloc etc., if HAVE___LIBC_MALLOC, as that is the way to call the standard ones in that case. (aligned_alloc): No need to declare if HAVE___LIBC_MALLOC, since we don=E2=80=99t replace it. (hybrid_aligned_alloc): Do not call aligned_alloc if HAVE___LIBC_MALLOC, since there is no __libc_aligned_alloc. Use posix_memalign instead. --- configure.ac | 3 +++ lib/Makefile.in | 2 +- lib/gnulib.mk.in | 1 + src/Makefile.in | 4 +++- src/conf_post.h | 9 ++++----- src/gmalloc.c | 16 ++++++++++++++-- 6 files changed, 26 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index ef61107..7dafd49 100644 --- a/configure.ac +++ b/configure.ac @@ -2214,6 +2214,7 @@ AC_DEFUN =20 GMALLOC_OBJ=3D HYBRID_MALLOC=3D +HAVE___LIBC_MALLOC=3D if test "${system_malloc}" =3D "yes"; then AC_DEFINE([SYSTEM_MALLOC], 1, [Define to 1 to use the system memory allocator, even if it is not @@ -2230,6 +2231,7 @@ AC_DEFUN GNU_MALLOC_reason=3D" (only before dumping)" GMALLOC_OBJ=3Dgmalloc.o VMLIMIT_OBJ=3D + AC_CHECK_FUNCS([__libc_malloc], [HAVE___LIBC_MALLOC=3D1]) else test "$doug_lea_malloc" !=3D "yes" && GMALLOC_OBJ=3Dgmalloc.o VMLIMIT_OBJ=3Dvm-limit.o @@ -2249,6 +2251,7 @@ AC_DEFUN fi fi AC_SUBST([HYBRID_MALLOC]) +AC_SUBST([HAVE___LIBC_MALLOC]) AC_SUBST(GMALLOC_OBJ) AC_SUBST(VMLIMIT_OBJ) =20 diff --git a/lib/Makefile.in b/lib/Makefile.in index ee41ea3..cd18da7 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -90,7 +90,7 @@ .c.o: e-%.o: %.c $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -Demacs -o $@ $< =20 -all: libgnu.a $(if $(HYBRID_MALLOC),libegnu.a) +all: libgnu.a $(if $(HYBRID_MALLOC),$(if $(HAVE___LIBC_MALLOC),,libegnu.= a)) =20 libgnu.a: $(libgnu_a_OBJECTS) $(AM_V_at)rm -f $@ diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 509089e..4afe4b3 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in @@ -522,6 +522,7 @@ HAVE_WCHAR_T =3D @HAVE_WCHAR_T@ HAVE_WINSOCK2_H =3D @HAVE_WINSOCK2_H@ HAVE_XSERVER =3D @HAVE_XSERVER@ HAVE__EXIT =3D @HAVE__EXIT@ +HAVE___LIBC_MALLOC =3D @HAVE___LIBC_MALLOC@ HYBRID_MALLOC =3D @HYBRID_MALLOC@ IMAGEMAGICK_CFLAGS =3D @IMAGEMAGICK_CFLAGS@ IMAGEMAGICK_LIBS =3D @IMAGEMAGICK_LIBS@ diff --git a/src/Makefile.in b/src/Makefile.in index 2be24ac..f1b1aeb 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -257,6 +257,7 @@ XDBE_CFLAGS =3D WIDGET_OBJ=3D@WIDGET_OBJ@ =20 HYBRID_MALLOC =3D @HYBRID_MALLOC@ +HAVE___LIBC_MALLOC =3D @HAVE___LIBC_MALLOC@ =20 ## cygw32.o if CYGWIN, otherwise empty. CYGWIN_OBJ=3D@CYGWIN_OBJ@ @@ -584,7 +585,8 @@ globals.h: =20 $(ALLOBJS): globals.h =20 -LIBEGNU_ARCHIVE =3D $(lib)/lib$(if $(HYBRID_MALLOC),e)gnu.a +LIBEGNU_ARCHIVE =3D \ + $(lib)/lib$(if $(HYBRID_MALLOC),$(if $(HAVE___LIBC_MALLOC),,e))gnu.a =20 $(LIBEGNU_ARCHIVE): $(config_h) $(MAKE) -C $(lib) all diff --git a/src/conf_post.h b/src/conf_post.h index e1d6a93..af10397 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -105,17 +105,16 @@ typedef bool bool_bf; =20 /* If HYBRID_MALLOC is defined (e.g., on Cygwin), emacs will use gmalloc before dumping and the system malloc after dumping. - hybrid_malloc and friends, defined in gmalloc.c, are wrappers that - accomplish this. */ -#ifdef HYBRID_MALLOC -#ifdef emacs + This is done via wrappers defined in gmalloc.c, whose names are + 'malloc' etc. if HAVE___LIBC_MALLOC is defined, and 'hybrid_malloc' + etc. otherwise. */ +#if defined HYBRID_MALLOC && !defined HAVE___LIBC_MALLOC && defined emac= s #define malloc hybrid_malloc #define realloc hybrid_realloc #define aligned_alloc hybrid_aligned_alloc #define calloc hybrid_calloc #define free hybrid_free #endif -#endif /* HYBRID_MALLOC */ =20 /* We have to go this route, rather than the old hpux9 approach of renaming the functions via macros. The system's stdlib.h has fully diff --git a/src/gmalloc.c b/src/gmalloc.c index 49f1faf..9de0079 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -1709,13 +1709,25 @@ valloc (size_t size) #undef aligned_alloc #undef free =20 +#ifdef HAVE___LIBC_MALLOC +# define hybrid_malloc malloc +# define hybrid_realloc realloc +# define hybrid_calloc calloc +# define hybrid_aligned_alloc aligned_alloc +# define hybrid_free free +# define malloc __libc_malloc +# define realloc __libc_realloc +# define calloc __libc_calloc +# define free __libc_free +#endif + #ifdef HYBRID_MALLOC /* Declare system malloc and friends. */ extern void *malloc (size_t size); extern void *realloc (void *ptr, size_t size); extern void *calloc (size_t nmemb, size_t size); extern void free (void *ptr); -#ifdef HAVE_ALIGNED_ALLOC +#if defined HAVE_ALIGNED_ALLOC && !defined HAVE___LIBC_MALLOC extern void *aligned_alloc (size_t alignment, size_t size); #elif defined HAVE_POSIX_MEMALIGN extern int posix_memalign (void **memptr, size_t alignment, size_t size)= ; @@ -1759,7 +1771,7 @@ hybrid_aligned_alloc (size_t alignment, size_t size= ) if (!DUMPED) return galigned_alloc (alignment, size); /* The following is copied from alloc.c */ -#ifdef HAVE_ALIGNED_ALLOC +#if defined HAVE_ALIGNED_ALLOC && !defined HAVE___LIBC_MALLOC return aligned_alloc (alignment, size); #else /* HAVE_POSIX_MEMALIGN */ void *p; --=20 2.9.4 From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 18 10:06:25 2017 Received: (at 27416) by debbugs.gnu.org; 18 Jun 2017 14:06:25 +0000 Received: from localhost ([127.0.0.1]:55223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMaqP-0003Nz-Ff for submit@debbugs.gnu.org; Sun, 18 Jun 2017 10:06:25 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:34857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMaqN-0003Ng-ER; Sun, 18 Jun 2017 10:06:23 -0400 Received: by mail-io0-f196.google.com with SMTP id f79so8848225ioi.2; Sun, 18 Jun 2017 07:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=pGocdIwLEs1O4Rzxt0g9pXXEbI6kV6CCE6bOnTy6Kw4=; b=f4bRW3O4y1EXLDdhqDbtwjUcxEVBu4RUKbj5wejBvv3NmYuxlvI9H7rnHvpqcZy5MI ULGD1LF0gShak2MO2EiWducfQeO7BeP8V5ZbNCNcTStyJKklu6EFX2vFgg20WLUPT3pX zX98gzvxmj+cSZKpDfv9d83I2JXIZzxrfiZ+mGOGOKfk1YjsdnSsEoggSBcrephbKXz0 WBdeSpJfWOScAymgkeOayC9dFarZg8EpD2qcYdhOdaf+9ZuKhwbQ2AMdNzyPQMUhsFxc T0UIrnMDWVcKYwfgmQgWbQmCGgOiL97N8K4NmR5QqssCTNQtIuA3XK0oh5J4m+3141PP f7IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=pGocdIwLEs1O4Rzxt0g9pXXEbI6kV6CCE6bOnTy6Kw4=; b=EtgVmQCtqeqBFw1V1XcffC6F0vuZFTyYdabw7w0CZxjZ/LU4NTm6BboCxiJm29lznK jyRQ2qErdrZran6WCcy29e4NcI9J1R5Rybd7eJbcHRBJ9nS/WkhI72nABaexRc+JpW5M 62wgQ8sKgxRpZIENrkFZ1W2p7HaWl9Q8jKWFOdgAdTg/SGqHk1o6SEzUhPfF5X3QoipE Ij68Zen0ChKGJuCexoEV10KLPSdsALL6KzlFUg/txhgUsBgAXv7oUxNh1vMoVAz3OtBA crJi/Bbp79Ccj6yoT4DpKwSIr8v1ANWhFiZrk6cOt0kaYUC3v5so4Z9Z0jrpQPhjoaYo 8F4Q== X-Gm-Message-State: AKS2vOzHsq56Y4N/lpi+/9RkT696AXJpHSO1xA6b4X0ZyK0X+vlhLdoD ZfKAKyp37u5tggl2 X-Received: by 10.107.142.136 with SMTP id q130mr19139564iod.225.1497794777636; Sun, 18 Jun 2017 07:06:17 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id j21sm2384827itb.15.2017.06.18.07.06.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Jun 2017 07:06:17 -0700 (PDT) From: npostavs@users.sourceforge.net To: Paul Eggert Subject: Re: bug#27416: [PROPOSED] Simplify malloc replacement on glibc References: <20170618002818.20744-1-eggert@cs.ucla.edu> Date: Sun, 18 Jun 2017 10:07:53 -0400 In-Reply-To: <20170618002818.20744-1-eggert@cs.ucla.edu> (Paul Eggert's message of "Sat, 17 Jun 2017 17:28:18 -0700") Message-ID: <87shixqthi.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 27416 + patch severity 27416 wishlist quit Paul Eggert writes: > This avoids the need to build lib/e-gettime.o etc. on glibc > platforms, as plain lib/gettime.o will do. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.7 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.223.196 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.223.196 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: 27416 Cc: 27416@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 27416 + patch severity 27416 wishlist quit Paul Eggert writes: > This avoids the need to build lib/e-gettime.o etc. on glibc > platforms, as plain lib/gettime.o will do. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.223.196 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.223.196 listed in list.dnswl.org] 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different tags 27416 + patch severity 27416 wishlist quit Paul Eggert writes: > This avoids the need to build lib/e-gettime.o etc. on glibc > platforms, as plain lib/gettime.o will do. Could you add something like the summary you posted in http://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00351.html to the commit message, I found the explanation here a bit confusing until I read that. [Replace] Emacs's hybrid malloc implementation on GNUish platforms with a hybrid implementation that redefines malloc instead of re-#defining it. That is, instead of defining a function hybrid_malloc that can call either gmalloc or the system malloc (and using the macro "#define malloc hybrid_malloc" in Emacs code), Emacs defines a function malloc that can call either gmalloc or the system malloc (via the latter=E2=80=99s alternate name =E2=80=98__libc_malloc= =E2=80=99), without using a macro. [T]he Emacs build process no longer needs to compile library files twice. For example, it can simply build lib/gettime.o from lib/gettime.c, rather than having to build both lib/gettime.o and lib/e-gettime.o. This is because there is only one malloc symbol used by Emacs code, not two. The hybrid malloc approach would not change on non-GNUish platforms. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 17:34:55 2017 Received: (at 27416-done) by debbugs.gnu.org; 21 Jun 2017 21:34:55 +0000 Received: from localhost ([127.0.0.1]:60328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNnH4-0005E0-Qw for submit@debbugs.gnu.org; Wed, 21 Jun 2017 17:34:54 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNnH2-0005Dm-Tp for 27416-done@debbugs.gnu.org; Wed, 21 Jun 2017 17:34:53 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8E6081600D5 for <27416-done@debbugs.gnu.org>; Wed, 21 Jun 2017 14:34:47 -0700 (PDT) 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 ShciiP8MGT1J for <27416-done@debbugs.gnu.org>; Wed, 21 Jun 2017 14:34:46 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DDFAC1600D6 for <27416-done@debbugs.gnu.org>; Wed, 21 Jun 2017 14:34:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 DtWxSCd4NrKO for <27416-done@debbugs.gnu.org>; Wed, 21 Jun 2017 14:34:46 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8F9261600D5 for <27416-done@debbugs.gnu.org>; Wed, 21 Jun 2017 14:34:46 -0700 (PDT) To: 27416-done@debbugs.gnu.org From: Paul Eggert Subject: Re: [PROPOSED] Simplify malloc replacement on glibc Organization: UCLA Computer Science Department Message-ID: Date: Wed, 21 Jun 2017 14:34:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27416-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) After looking into this some more, I decided not to pursue this. The patch has a typo, and when I fixed the typo and debugged Emacs I found that the patch sometimes made Emacs crashed. Apparently the problem is that the dynamic linker uses gmalloc once the patch is made, and gmalloc is not compatible with what the dynamic linker expects. Oh well. Closing. From unknown Mon Aug 18 21:50:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 20 Jul 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator