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 04:30:47 -0400 Message-ID: References: <86msp3avh1.fsf@gnu.org> <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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 10:31:21 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 1sJ7lo-0009LJ-U7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 10:31:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJ7lW-0004Bc-4q; Mon, 17 Jun 2024 04:31:02 -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 1sJ7lU-00047v-Mx for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 04:31: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 1sJ7lU-0007E3-Dg for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 04:31:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJ7lV-0002uL-S7 for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 04:31: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: Mon, 17 Jun 2024 08:31: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.171861305711167 (code B ref 70796); Mon, 17 Jun 2024 08:31:01 +0000 Original-Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 08:30:57 +0000 Original-Received: from localhost ([127.0.0.1]:59507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7lR-0002u3-FF for submit@debbugs.gnu.org; Mon, 17 Jun 2024 04:30:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7lP-0002to-W9 for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 04:30:56 -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 1sJ7lI-0007Bd-GX; Mon, 17 Jun 2024 04:30:48 -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=k3Z9CZ43x8rlLjyl4wWaPsFdb46lzcOKeCkDRo0R1mI=; b=hHLGFNgvyc9VJTNUJnTj 0iMmDrVzbQ87swwoeEkfnntcQYLzYhwXqh0G9lFB2gH8thhalaqs0N1Po7hIG12un6VzLsvRYF95u P5AEOG5y30wJT/jozJ0IbNS+mY19Z6P6fRXmjhTFuebIpOoEVqiQE7jRlquKffuMWC2q0hGb8kLD1 6uRfFwYlR9iV1xsruVJ+vXlSaOA50tzFtfmm5unil2F5h2D5pNGPUo+tCDVKE9yjFDnQoQUxWMV2B 5wh5ovvznt1J3QP44Ndvx2TxBMS4mW4LRQfIq67L/uWyz9d58AfSLzZ2RohCcKTLnLuBocqNngWQR a+B2MYNLGJU0DQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ7lH-0003xb-RA; Mon, 17 Jun 2024 04:30:47 -0400 In-Reply-To: <87tths3rsc.fsf@gnu.org> (Tassilo Horn's message of "Mon, 17 Jun 2024 10:19: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:287371 Archived-At: 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=yes the other --with-native-compilation=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 Andrea