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 18:56:18 +0200 Message-ID: <83mvu62cst.fsf@gnu.org> References: <876118u6f2.fsf@lifelogs.com> <8737w3qero.fsf@lifelogs.com> <831tbn9g9j.fsf@gnu.org> <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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448211412 17977 80.91.229.3 (22 Nov 2015 16:56:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 16:56:52 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 17:56:43 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 1a0XwQ-0002mi-K6 for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 17:56:42 +0100 Original-Received: from localhost ([::1]:56679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XwQ-0004XV-P4 for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 11:56:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XwD-0004XP-Ly for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:56:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0XwA-0007RK-GX for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:56:29 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:38838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XwA-0007RD-8o for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:56:26 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NY800G006KRY400@mtaout25.012.net.il> for emacs-devel@gnu.org; Sun, 22 Nov 2015 18:53:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NY800GDZ6XLWW10@mtaout25.012.net.il>; Sun, 22 Nov 2015 18:53:45 +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.181 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:195037 Archived-At: > From: Philipp Stephani > Date: Sun, 22 Nov 2015 16:27:19 +0000 > Cc: eggert@cs.ucla.edu, aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, > emacs-devel@gnu.org > > Eli Zaretskii schrieb am So., 22. Nov. 2015 um 17:23 Uhr: > > I don't understand: we already have in emacs-module.c machinery that > handles non-local exits. Why cannot xmalloc do the same when it's > called from emacs-module.c? > > My impression was that Paul talked about code in modules, not code in > emacs-module.c. The latter can use xmalloc just fine, if appropriate protection > is installed first. I'll let Paul explain what he was worried about. What I was worried about is that memory allocation done by emacs-module.c on behalf of modules doesn't behave like xmalloc does, doesn't comply to the MALLOC_BLOCK_INPUT protocol, and cannot be probed by MALLOC_PROBE. I think this should be easy to fix.