From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 22 Nov 2015 21:26:34 +0200 Message-ID: <831tbh3ket.fsf@gnu.org> References: <878u5upw7o.fsf@lifelogs.com> <83ziya8xph.fsf@gnu.org> <83y4du80xo.fsf@gnu.org> <837fld6lps.fsf@gnu.org> <83610w5o97.fsf@gnu.org> <564FACF5.2080601@cs.ucla.edu> <564FBAA7.5030306@cs.ucla.edu> <5650F9CD.9030707@cs.ucla.edu> <83oaem2ebu.fsf@gnu.org> <83mvu62cst.fsf@gnu.org> <56520E5F.706@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448220422 29451 80.91.229.3 (22 Nov 2015 19:27:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 19:27:02 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, eggert@cs.ucla.edu, dancol@dancol.org, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 20:26:52 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a0aHi-00030T-0I for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 20:26:50 +0100 Original-Received: from localhost ([::1]:57188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0aHi-0002dV-23 for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 14:26:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0aHe-0002dK-OO for emacs-devel@gnu.org; Sun, 22 Nov 2015 14:26:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0aHa-00076O-Oh for emacs-devel@gnu.org; Sun, 22 Nov 2015 14:26:46 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:45112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0aHa-00076J-GU for emacs-devel@gnu.org; Sun, 22 Nov 2015 14:26:42 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NY800B00D7BNU00@mtaout24.012.net.il> for emacs-devel@gnu.org; Sun, 22 Nov 2015 21:19:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NY8001I7DOJRN90@mtaout24.012.net.il>; Sun, 22 Nov 2015 21:19:32 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195055 Archived-At: > From: Philipp Stephani > Date: Sun, 22 Nov 2015 19:19:49 +0000 > Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, > Emacs developers , Daniel Colascione > > Thanks for the patch, but this handles only part of the problem, namely, > the > memory allocated by emacs-module.c directly. We need a way for modules > themselves to allocate memory that is properly accounted for, and this > allocation should be nearly as convenient as xmalloc so that modules don't > need > to check for failure after each allocation. > > This is _impossible_ without using longjmp. Why? Why cannot emacs-module.c expose an allocator, which modules will then use as a sole source of memory? And why such an allocator cannot do exactly what you did in your patch?