From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#58509: 29.0.50; Synchronous nativecomp Date: Wed, 19 Oct 2022 19:31:05 +0000 Message-ID: References: <87a65yd715.fsf@gnus.org> <83mt9y8ynk.fsf@gnu.org> <87zgdybrnc.fsf@gnus.org> <83lepi8y4l.fsf@gnu.org> <87ilkmbqu3.fsf@gnus.org> <83k0528w1w.fsf@gnu.org> <87a65x786i.fsf@gnus.org> <871qr82lu6.fsf@gnus.org> <87v8oielxp.fsf@gnus.org> <878rleek7y.fsf@gnus.org> <834jw236v8.fsf@gnu.org> <87edv6ckof.fsf@gnus.org> <83fsfl1c3r.fsf@gnu.org> <83mt9tynr9.fsf@gnu.org> <838rlbzl0a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31797"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: larsi@gnus.org, 58509@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 21:32:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olEnc-00084G-5A for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 21:32:20 +0200 Original-Received: from localhost ([::1]:45156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olEnZ-0001B5-KQ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 15:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olEnL-00016y-6e for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olEnK-0001jf-UQ for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olEnK-0002kr-FT for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 15:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58509 X-GNU-PR-Package: emacs Original-Received: via spool by 58509-submit@debbugs.gnu.org id=B58509.166620787210531 (code B ref 58509); Wed, 19 Oct 2022 19:32:02 +0000 Original-Received: (at 58509) by debbugs.gnu.org; 19 Oct 2022 19:31:12 +0000 Original-Received: from localhost ([127.0.0.1]:60087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olEmV-0002jm-VA for submit@debbugs.gnu.org; Wed, 19 Oct 2022 15:31:12 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:63794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olEmT-0002jc-Dh for 58509@debbugs.gnu.org; Wed, 19 Oct 2022 15:31:10 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29JJV5cg024700 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 19 Oct 2022 19:31:06 GMT In-Reply-To: <838rlbzl0a.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Oct 2022 22:11:33 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245892 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: larsi@gnus.org, 58509@debbugs.gnu.org >> Date: Wed, 19 Oct 2022 19:02:59 +0000 >> >> Eli Zaretskii writes: >> >> >> From: Andrea Corallo >> >> Cc: Lars Ingebrigtsen , 58509@debbugs.gnu.org >> >> Date: Tue, 18 Oct 2022 13:55:18 +0000 >> >> >> >> The attached works for me for fixing the trampoline issue (unless I did >> >> something wrong reproducing). >> >> >> >> I named the flag -no-comp-spawn from the variable it controls. Happy to >> >> rename it if we have something better, but being for internal use only >> >> maybe is already okay? >> > >> > On second thought: why do we need a special knob for that? Could we >> > instead _always_ compile trampolines "without spawning" in a --batch >> > session? >> >> Hi Eli, >> >> unfortunately we cannot as libgccjit leaks memory :/ > > I think there could be a misunderstanding here. What I meant is to do > whatever we do under -no-comp-spawn, but do it always for trampolines > in the --batch invocations, without the need to see -no-comp-spawn on > the command line. > "do it always for trampolines in the --batch invocations" So you mean identifying that we are doing a trampoline compilation and disable the native compiler without a specific flag? But I'm not sure I understand 100%, hope the explaination that follows helps clarifying. > Or maybe I misunderstand what -no-comp-spawn does, in which case can > you tell me what I missed? -no-comp-spawn makes sure that in the spawend compilation processes, no matter what, we never spawn again other compilation processes. We have two invocations for spawning processes, one for sync compilations and one of async (none of the invocation is specific to trampolines). This patch is using -no-comp-spawn for both. Andrea