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? Date: Fri, 28 Oct 2016 10:40:37 +0300 Message-ID: <83lgx8syyy.fsf@gnu.org> References: <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> <83mvhwrgd5.fsf@gnu.org> <8539f38f-9a11-44c3-4de7-bb974c96206c@cs.ucla.edu> <8360ojpndr.fsf@gnu.org> <83wpgzo30m.fsf@gnu.org> <5a4bbe6d-08ce-e6c6-39d1-49c9cd6d1ffd@cs.ucla.edu> <83mvhvns9a.fsf@gnu.org> <83d1irnozo.fsf@gnu.org> <83mvhunb0d.fsf@gnu.org> <423fab24-9be6-778c-58c3-29a0b825b8c7@cs.ucla.edu> <83a8du5gy1.fsf@gnu.org> <92ca0bf8-7ad4-a7de-70e5-ddbd6eab9741@cs.ucla.edu> <83zilt3dne.fsf@gnu.org> <871sz1gfln.fsf@ritchie.wxcvbn.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1477640506 3774 195.159.176.226 (28 Oct 2016 07:41:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2016 07:41:46 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: jca@wxcvbn.org (=?iso-8859-1?Q?J=E9r=E9mie_Courr=E8ges-Anglas?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 28 09:41:42 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 1c01mx-00063q-0X for ged-emacs-devel@m.gmane.org; Fri, 28 Oct 2016 09:41:19 +0200 Original-Received: from localhost ([::1]:47260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c01mz-0007Rv-Hu for ged-emacs-devel@m.gmane.org; Fri, 28 Oct 2016 03:41:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c01mH-0007Re-Bn for emacs-devel@gnu.org; Fri, 28 Oct 2016 03:40:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c01mD-00005t-7A for emacs-devel@gnu.org; Fri, 28 Oct 2016 03:40:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c01mD-00005p-44; Fri, 28 Oct 2016 03:40:33 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3681 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c01mC-0006Gf-BJ; Fri, 28 Oct 2016 03:40:32 -0400 In-reply-to: <871sz1gfln.fsf@ritchie.wxcvbn.org> (jca@wxcvbn.org) 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:208925 Archived-At: > From: jca@wxcvbn.org (Jérémie Courrèges-Anglas) > Cc: Paul Eggert , emacs-devel@gnu.org > Date: Fri, 28 Oct 2016 08:19:48 +0200 > > > Yes, exactly. And since most people at least here use Emacs on > > GNU/Linux, the nasty problems due to ralloc.c are popping up much > > faster and more frequently than they did when only *BSD and Windows > > used ralloc.c. > > I'm a bit surprised that such issues happen on recent glibc systems. > Emacs has been using ralloc on OpenBSD since years, and seems to be > pretty stable. Granted, memory corruption bugs can depend on many > parameters, but still... I guess your usage patterns side-step the problematic code. E.g., if the resulting memory footprint is stable (i.e. never grows too much too fast), ralloc will not need to relocate buffer text too frequently, so you won't bump into these problems. And some of those problems appeared only recently: e.g., EWW, which triggers the problem when it calls libxml2, is a 25.1 addition.