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:23:17 +0200 Message-ID: <83oaem2ebu.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1448209428 20566 80.91.229.3 (22 Nov 2015 16:23:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 16:23:48 +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:23:38 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 1a0XQM-0002YT-Mj for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 17:23:34 +0100 Original-Received: from localhost ([::1]:56589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XQM-0005t5-RM for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 11:23:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XQH-0005sw-Fr for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:23:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0XQE-0000H6-CX for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:23:29 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0XQE-0000GX-4X for emacs-devel@gnu.org; Sun, 22 Nov 2015 11:23:26 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NY800F00598OE00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 22 Nov 2015 18:23:24 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NY800F065J0G760@a-mtaout20.012.net.il>; Sun, 22 Nov 2015 18:23:24 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:195034 Archived-At: > From: Philipp Stephani > Date: Sun, 22 Nov 2015 09:03:39 +0000 > Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, emacs-devel@g= nu.org >=20 > We have already discussed longjmp at length in this thread, and Dan= iel, > Aur=C3=A9lien and I are all strongly against it. Using longjmp make= s it effectively > impossible to write modules in any language but C, and even C code = has to be > very careful (e.g. it can't use __attribute__((cleanup))). longjmp = is only > possible within a monolithic system that is able to make closed-wor= ld > assumptions such as the Emacs binary itself, it is impossible in ge= neric and > portable library code. We have worked hard to remove the possibilit= y of longjmp > leaking into module code, and I won't put that possibility back in.= =20 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?