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#70796: 30.0.50; bug-reference-mode leading to constant GCing Date: Mon, 17 Jun 2024 05:30:51 -0400 Message-ID: References: <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> <865xuawsi7.fsf@gnu.org> <874j9t5ihf.fsf@gnu.org> <86jziprwtx.fsf@gnu.org> <87tths3rsc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28874"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 11:32:11 2024 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 1sJ8ih-0007I3-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 11:32:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJ8iX-0003ZY-FM; Mon, 17 Jun 2024 05:32:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ8iW-0003ZG-5t for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:32:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJ8iV-0008V1-UV for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:31:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJ8iX-0004U9-QN for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 09:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70796 X-GNU-PR-Package: emacs Original-Received: via spool by 70796-submit@debbugs.gnu.org id=B70796.171861666517169 (code B ref 70796); Mon, 17 Jun 2024 09:32:01 +0000 Original-Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 09:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:59563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ8hd-0004Sp-Aj for submit@debbugs.gnu.org; Mon, 17 Jun 2024 05:31:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ8ha-0004SM-V5 for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 05:31:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ8hT-0008LO-Ai; Mon, 17 Jun 2024 05:30:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=joQhSq/hL38797cLGk1dLjq8KXSqeBkEvfVJP7HwHh0=; b=Y290rNturTVPHwMRbDyW Oj6mQeBZ8vDNRqGptozDXdkxWU/a7kw6JNemO1IwYduEKstbwTH/XkIghBrOrckLuMwuJ1/WnhuUm CAQsU0/3O14Xm/1zGJpE/oPG3O4cVmBw5lPRtcBcC4D9UtonLuNn+iRjnlKrf6kemTeFkEKlLt+3/ og4ITrj2rF42Hy3vj05dpQ+z936+p4otuwhlfVaV9SghvgCcRADHCzJEPPW0o916Q9DD3E2JnY+au Bhxg3JQScBKELiDw0s8NQqZWQ9ABug4S+M5Ymuq7XZ89Z5PcA/w1FlRrF+a7Pwi55lfw+ekikBgd5 rizVPuptsYQSSw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ8hR-0007yM-Ga; Mon, 17 Jun 2024 05:30:54 -0400 In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Mon, 17 Jun 2024 11:02:31 +0200") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287375 Archived-At: Gerd M=C3=B6llmann writes: > Andrea Corallo writes: > >> Tassilo Horn writes: >> >>> Andrea Corallo writes: >>> >>>> Okay, so this is what I tried: >>>> >>>> I bootstrapped two Emacs from current master (7be66d8223e) one >>>> --with-native-compilation=3Dyes the other --with-native-compilation=3D= no >>>> and boths with Gerd patch applied. >>>> >>>> Also I checkout current scratch/igc (2343d55dff4) to get igc.org. >>>> >>>> I then tried to run with boths native/non-native emacsen with: >>>> >>>> .../src/emacs -eval '(setq garbage-collection-messages t)' -Q >>>> ~/emacs4/admin/igc.org >>>> >>>> Once started looking in *Messages* I see 7 GC cycles in the the >>>> non-native build and 5 in the native one, also I can scroll without >>>> issues or other GC cycles. >>>> >>>> Note that only during the first start the native copiled Emacs did a >>>> number of GC cycles more to jit some code but I guess that's expected. >>>> >>>> Am I trying to repruduce this correctly? >>> >>> Yes. And you also need to put some function in addition to >>> font-lock-fontify-region in jit-lock-functions, either by enabling >>> bug-reference-mode, goto-address-mode, or simply defining >>> >>> (defun i-do-nothing (start end) nil) >>> >>> and then M-: (jit-lock-register #'i-do-nothing) RET in the igc.org >>> buffer. >>> >>> Bye, >>> Tassilo >> >> Okay I tried both your suggestion both Gerd's one on the native compiled >> instance with no effect on the number of GC cycles (I'm on GNU/Linux X86= -64). >> >> The best I can do is to try later this afternoon on GNU/Linux AArch64 >> and see if something changes. > > Thanks. I'm still suspecting either macOS or libgccjit 14 on arm64, BTW, > or a combination. But I guess I already mentioned that :-). Right I repeated the test on AArch64 using. This is the content of my *Messages* after opening igc.org, defining and registering 'i-do-nothing', and scrolling a bit up and down. =3D=3D=3D=3D=3D For information about GNU Emacs and the GNU system, type C-h C-a. Garbage collecting... [25 times] i-do-nothing (jit-lock-function) Garbage collecting...done =3D=3D=3D We see some more GC cycles compared to X86_64 at the beginning but I guess that's not the focus here because after 'i-do-nothing' is registered I see only a GC cycle and nothing more (even if I scroll). So to me this all looks good. PS On this machine I'm on libgccjit 13.2.1. Andrea