From unknown Sat Jun 21 12:18:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70796 <70796@debbugs.gnu.org> To: bug#70796 <70796@debbugs.gnu.org> Subject: Status: 30.0.50; bug-reference-mode leading to constant GCing Reply-To: bug#70796 <70796@debbugs.gnu.org> Date: Sat, 21 Jun 2025 19:18:15 +0000 retitle 70796 30.0.50; bug-reference-mode leading to constant GCing reassign 70796 emacs submitter 70796 Gerd M=C3=B6llmann severity 70796 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 02:54:39 2024 Received: (at submit) by debbugs.gnu.org; 6 May 2024 06:54:39 +0000 Received: from localhost ([127.0.0.1]:36099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3sFD-0005Hj-9c for submit@debbugs.gnu.org; Mon, 06 May 2024 02:54:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3sF7-0005Ha-Ef for submit@debbugs.gnu.org; Mon, 06 May 2024 02:54:37 -0400 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 1s3sED-00048V-0i for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 02:53:46 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3sE9-0003GK-9t for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 02:53:36 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a599a298990so378845666b.2 for ; Sun, 05 May 2024 23:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714978411; x=1715583211; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ZaSavCIzuLROPW0mYGmAi8X2oNBITdosev7zdqW9Mqg=; b=gPiPu4ttlOTdmggMDTdkq2hz2i5wel4OPsprb1pjawZzutxwBUsl0ySSXmdr/BKqxu D8SfOyPK3tRzcphObI5/pEsB+w9wAMXAu867XHRvJ/yye3gOMwgCos5y+V8QtaPwTv3D gThidpWiCJuvmmSiW7uvsLBQ13O/jntCKLSAvSLnITDWtQGvIByclTstxgs4JWSLkDFJ mrL7ryIfEkub0v2Snl13iVSu4il3liy/836yeDEVGAvtBaJ2DoJWMAKiyi5ZMqw0ldsn 5KRxpOiV8GakJ/9B71+YlOt6mg25IrwCrmLA6IiFb0O6x/UG5ouyXQ1JnuJrcmKTqoYz A1+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714978411; x=1715583211; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZaSavCIzuLROPW0mYGmAi8X2oNBITdosev7zdqW9Mqg=; b=cBRZDcnL9La+Qb3lHLUj6WBiuKQrMGlwzVdIWPLZM8a4+1Pcr+FWy4RuSFjkMrd+PS HRdO5ZfgD3FqVHb+4VTkfZTKpt6JlkmqyusRU92F++G/MwxpeIR+eVURPTUgGxqwdkxQ GtTjE7vImb27H2c0XC+7bV3yCK2en0oQrEzRWPVlizbKUE1Iv4DduGwT2UgI5SjuznqF bxiYLqVyNPrQx/nn9bsyFJ/dqmXmflaZei1BFPDClTga0nMnEcy0ZO+F6o7/wIStHm6W S9Augq2zRp9ttLpf3156epUypqS6512vXG5sGZUdqxJPxl9EMa10rcR9qiuMbsLrYcCP jlYw== X-Gm-Message-State: AOJu0Yz6Hvx0oR7Sp64GTw2mqLxyljskpxbf3XUwyggKMGMMMDb7DJ15 J5yGN33nHs57ci+RXm76xMOd7X5jJ6jMItpc+XbVVIB/90IFbjbf4jUnzA== X-Google-Smtp-Source: AGHT+IFy0H7tBGUTorb+LJhblSAu7hY7ZIXltZKtxK5ZxPiM+V6eSl24Z9v7pxdkzrI5X4gyjbR+pA== X-Received: by 2002:a05:6402:1d99:b0:568:9cfe:1974 with SMTP id dk25-20020a0564021d9900b005689cfe1974mr3579950edb.18.1714978411103; Sun, 05 May 2024 23:53:31 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a55e.dip0.t-ipconnect.de. [79.227.165.94]) by smtp.gmail.com with ESMTPSA id p9-20020a056402500900b005727b2ae25csm4801371eda.14.2024.05.05.23.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:53:30 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: bug-gnu-emacs@gnu.org Subject: 30.0.50; bug-reference-mode leading to constant GCing X-Debbugs-Cc: Date: Mon, 06 May 2024 08:53:29 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is in an Emacs compiled from the branch scratch/igc, but I see the same in master. When loading admin/igc.org in scratch/igc I see very frequent GC, even while doing nothing at all. Memory profiler shows this 4,192,076,326 68% - redisplay_internal (C function) 2,997,520,400 48% - jit-lock-function 2,997,520,400 48% - jit-lock-fontify-now 2,982,457,616 48% - jit-lock--run-functions 2,982,457,616 48% - run-hook-wrapped 2,982,457,616 48% - # 2,769,181,376 45% - font-lock-fontify-region 2,769,181,376 45% - font-lock-default-fontify-region 2,707,362,176 44% - font-lock-fontify-keywords-region 276,400,512 4% + org-do-emphasis-faces 197,821,440 3% + org-fontify-drawers 197,821,440 3% + org-activate-links 197,821,440 3% + org-activate-tags 197,821,440 3% + org-activate-dates 197,821,440 3% + org-activate-footnote-links 197,821,440 3% + org-fontify-macros 197,821,440 3% + org-font-lock-add-priority-faces 197,821,440 3% + org-do-latex-and-related 197,821,440 3% + org-activate-code 197,821,440 3% + org-fontify-meta-lines-and-blocks 197,821,440 3% + org-fontify-inline-src-blocks 197,821,440 3% + org-cite-activate 57,104,384 0% re-search-forward 61,819,200 1% + font-lock-unfontify-region 213,276,240 3% + bug-reference-fontify 15,062,784 0% - run-with-timer 15,062,784 0% + apply 97,280 0% + file-remote-p 336 0% + desktop-auto-save-set-timer 144 0% + tab-bar-make-keymap 1,955,072,562 31% + command-execute 129,456 0% + timer-event-handler 1,024 0% + corfu--auto-post-command 0 0% ... Disabling bug-reference-mode in the Org buffer makes it stop constantly GCing. In GNU Emacs 30.0.50 (build 4, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-05-06 built on pro2.fritz.box Repository revision: 5067d5484f80ac39d9aa57bd53343e335b744003 Repository branch: scratch/igc Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.4.1 Configured using: 'configure --cache-file /var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//config.cache.igc --with-native-compilation=no --with-mps=yes CC=clang' From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 07:49:12 2024 Received: (at 70796) by debbugs.gnu.org; 6 May 2024 11:49:12 +0000 Received: from localhost ([127.0.0.1]:37545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3wqF-00031k-9F for submit@debbugs.gnu.org; Mon, 06 May 2024 07:49:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3wq8-000310-6o for 70796@debbugs.gnu.org; Mon, 06 May 2024 07:49:10 -0400 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 1s3wpd-0006hQ-K3; Mon, 06 May 2024 07:48:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Rim4Xihe1QVcvdTgsVxghZOl0IHUs0GEfdXvOr4Oouc=; b=dbe3tIUKde/YsE1XdK95 AQYLbEu+1brxVXr31egLbAdSrYwZ+8GeizZzJCIJPHodGhR4HC/fqXv4P4bmhfA5vEDOwt7gW6nD7 xSe51S/Q8xY9KeLp3P7ucSrLA3dPDXCBYbAsorj+SKY+R+QPN3/3o95TVOMgFNf6P3WbAyL723SB0 Lelsw9vtchUYFGPWyhBIMXQorVejXVbZ8u1/hK4SB9zy6r0s1p4f7RAU+4DagQn9dxliOuhgZ9h2K /FAl38PYezz7nKp3UiFQ2h0cAdnvSsz+XVDIbM+YguxoqMjBZRZEj/ooSO4QgHDaFB7sIxOkmFn5N shoVvfFGuofLgQ==; Date: Mon, 06 May 2024 14:48:29 +0300 Message-Id: <86ttjbb1pu.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Mon, 06 May 2024 08:53:29 +0200) Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Date: Mon, 06 May 2024 08:53:29 +0200 > > This is in an Emacs compiled from the branch scratch/igc, but I see the > same in master. > > When loading admin/igc.org in scratch/igc I see very frequent GC, even > while doing nothing at all. Memory profiler shows this > > 4,192,076,326 68% - redisplay_internal (C function) > 2,997,520,400 48% - jit-lock-function > 2,997,520,400 48% - jit-lock-fontify-now > 2,982,457,616 48% - jit-lock--run-functions > 2,982,457,616 48% - run-hook-wrapped > 2,982,457,616 48% - # > 2,769,181,376 45% - font-lock-fontify-region > 2,769,181,376 45% - font-lock-default-fontify-region > 2,707,362,176 44% - font-lock-fontify-keywords-region > 276,400,512 4% + org-do-emphasis-faces > 197,821,440 3% + org-fontify-drawers > 197,821,440 3% + org-activate-links > 197,821,440 3% + org-activate-tags > 197,821,440 3% + org-activate-dates > 197,821,440 3% + org-activate-footnote-links > 197,821,440 3% + org-fontify-macros > 197,821,440 3% + org-font-lock-add-priority-faces > 197,821,440 3% + org-do-latex-and-related > 197,821,440 3% + org-activate-code > 197,821,440 3% + org-fontify-meta-lines-and-blocks > 197,821,440 3% + org-fontify-inline-src-blocks > 197,821,440 3% + org-cite-activate > 57,104,384 0% re-search-forward > 61,819,200 1% + font-lock-unfontify-region > 213,276,240 3% + bug-reference-fontify > 15,062,784 0% - run-with-timer > 15,062,784 0% + apply > 97,280 0% + file-remote-p > 336 0% + desktop-auto-save-set-timer > 144 0% + tab-bar-make-keymap > 1,955,072,562 31% + command-execute > 129,456 0% + timer-event-handler > 1,024 0% + corfu--auto-post-command > 0 0% ... Where's the evidence of "frequent GC" in this profile? (And "memory profile" has nothing to do with memory usage, contrary to popular belief.) > Disabling bug-reference-mode in the Org buffer makes it stop constantly > GCing. I believe you. But showing the number of GCs (e.g., using the variable gcs-done) would tell us the story more convincingly. Alternatively, if you can share an Org file where this could be seen, please do. From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 08:36:17 2024 Received: (at 70796) by debbugs.gnu.org; 6 May 2024 12:36:17 +0000 Received: from localhost ([127.0.0.1]:37895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3xZp-0003gL-2n for submit@debbugs.gnu.org; Mon, 06 May 2024 08:36:17 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:52567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3xZm-0003gF-QX for 70796@debbugs.gnu.org; Mon, 06 May 2024 08:36:15 -0400 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a59ae3efbb3so167429166b.1 for <70796@debbugs.gnu.org>; Mon, 06 May 2024 05:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714998944; x=1715603744; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QLZPgaVfD/fdz20X/GjyDP1UI0bjSemERYGwbnt3h34=; b=ZpANHKN2C1KaP1xd09gU5rig92jqb3kHaP6OP05L+mvVCsfmoxHQRX43UcxXdtI0u3 pgKBlgvtfHVTiYDBuruFPpsoGGSgBF4kC8FFfvXG9rIDfSe3YX6dmiw/djZ0Wp+Cw0v4 VHViN3a+KZmMcZq7T9RgJymuxzV7DqRBpiOGRqNwx6+R0P7n3C1PLLIQORSqzeLn0Sb+ q4Mr+VKgyCbze22jpwbli3zBdT13Vu9vABwmWqfg8p+w6Sh2HF7OdWTl/bRU+duYWISS tJwId7YkQa4qf5Q6eOUXF8SFmVYvz6lcl+HOvlqflBIBEq2dTFjzZLsON/WS0RrtxsFH xevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714998944; x=1715603744; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QLZPgaVfD/fdz20X/GjyDP1UI0bjSemERYGwbnt3h34=; b=ApMdZY9fuMJE5aDsQZdugKlTLpv/iTK5AzBMEyLDT8ZOQCyIkZW6pgi0+PDbp74DmK SmZ63oJ6fN9axQk+GZZEXmkk6oZ4oVzN6WflnEALxMcneQQueGOt+FWl7/I+/30OogXz +cvjuA2htMSzviKm8Pwi2r8iN0eM6xepWlTtUiLCP2sAL0vIKxgLkz1rKEJCu2x1di5k bjBrKDIp8cfRYN4oAcrmg/WMIRNV7FN88RKUDGrOz5zhb2XsRs/IUAtA8RywH9P+SNQR +YyykqYBrfY+un4sz8D4Ahr+HeFDk9cE5qtf6FaJ8tDlD91Xt84HpGdJtpPuXdtIX67I lu5g== X-Gm-Message-State: AOJu0Yy+8OnuVyYbcrK7HwteL4D8tZ46FrGFFTg4B0BK51lzyWBzCqet JuBshUKl7lvrgE0BqrBo1hpTBaJVKAHNmGoyLWULEDYSUKZJeUjR2knhAQ== X-Google-Smtp-Source: AGHT+IG2tFdpd1+T9HnUZCUIBKymB+V0o4xt0dBIeoaITWsbI04gtKRCiVLfSeLT3aaVaSyqe4BCSg== X-Received: by 2002:a50:a693:0:b0:56e:2cb6:480e with SMTP id e19-20020a50a693000000b0056e2cb6480emr8510817edc.38.1714998943760; Mon, 06 May 2024 05:35:43 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a55e.dip0.t-ipconnect.de. [79.227.165.94]) by smtp.gmail.com with ESMTPSA id v21-20020aa7d9d5000000b005700ef75274sm5147315eds.33.2024.05.06.05.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:35:43 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <86ttjbb1pu.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 May 2024 14:48:29 +0300") References: <86ttjbb1pu.fsf@gnu.org> Date: Mon, 06 May 2024 14:35:42 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Date: Mon, 06 May 2024 08:53:29 +0200 >>=20 >> This is in an Emacs compiled from the branch scratch/igc, but I see the >> same in master. >>=20 >> When loading admin/igc.org in scratch/igc I see very frequent GC, even >> while doing nothing at all. Memory profiler shows this >>=20 >> 4,192,076,326 68% - redisplay_internal (C function) >> 2,997,520,400 48% - jit-lock-function >> 2,997,520,400 48% - jit-lock-fontify-now >> 2,982,457,616 48% - jit-lock--run-functions >> 2,982,457,616 48% - run-hook-wrapped >> 2,982,457,616 48% - # >> 2,769,181,376 45% - font-lock-fontify-region >> 2,769,181,376 45% - font-lock-default-fontify-region >> 2,707,362,176 44% - font-lock-fontify-keywords-region >> 276,400,512 4% + org-do-emphasis-faces >> 197,821,440 3% + org-fontify-drawers >> 197,821,440 3% + org-activate-links >> 197,821,440 3% + org-activate-tags >> 197,821,440 3% + org-activate-dates >> 197,821,440 3% + org-activate-footnote-links >> 197,821,440 3% + org-fontify-macros >> 197,821,440 3% + org-font-lock-add-priority-faces >> 197,821,440 3% + org-do-latex-and-related >> 197,821,440 3% + org-activate-code >> 197,821,440 3% + org-fontify-meta-lines-and-blocks >> 197,821,440 3% + org-fontify-inline-src-blocks >> 197,821,440 3% + org-cite-activate >> 57,104,384 0% re-search-forward >> 61,819,200 1% + font-lock-unfontify-region >> 213,276,240 3% + bug-reference-fontify >> 15,062,784 0% - run-with-timer >> 15,062,784 0% + apply >> 97,280 0% + file-remote-p >> 336 0% + desktop-auto-save-set-timer >> 144 0% + tab-bar-make-keymap >> 1,955,072,562 31% + command-execute >> 129,456 0% + timer-event-handler >> 1,024 0% + corfu--auto-post-command >> 0 0% ... > > Where's the evidence of "frequent GC" in this profile? I didn't say the profile is evidence of frequent GCs. > (And "memory profile" has nothing to do with memory usage, contrary to > popular belief.) > >> Disabling bug-reference-mode in the Org buffer makes it stop constantly >> GCing. > > I believe you. But showing the number of GCs (e.g., using the > variable gcs-done) would tell us the story more convincingly. > Alternatively, if you can share an Org file where this could be seen, > please do. So, believe me. Or not, as you please. I said where the Org file is at the beginning. From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 10:04:03 2024 Received: (at 70796) by debbugs.gnu.org; 6 May 2024 14:04:03 +0000 Received: from localhost ([127.0.0.1]:38277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3ywk-0004tD-PD for submit@debbugs.gnu.org; Mon, 06 May 2024 10:04:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3ywh-0004sk-7l for 70796@debbugs.gnu.org; Mon, 06 May 2024 10:04:01 -0400 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 1s3ywD-0002k2-Hn; Mon, 06 May 2024 10:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/mJValvjVPYr1wp7X52I78GadqzxYxwRpAwHJK3n/Og=; b=O532r2zsBGpN3Am1q5x1 ucgNvOg4VTk2n/b9aP4RQf318hHGhc1WoyAon+1eZCLvanlAeQvUlPDdn7ZrgIMaYk2mMir1REpjm YYipqv21P2HAhbfI2EEzocq6eu/1p1aepFwHmQoVp7BQp5y+dUbja5mD5RRUvdjX5Y75nEvBobBOH bDz3ODdNTHzDmm0bL5723XMJHRCE7u74aKd2NrdyMMJsxdeyxj/LrHb4ZS6esE4nJezEuXsD/frEk R/yG8ouExNKkcVUzQwDFx+UD9LwJKMPl+5MbH9lsPZQMw+Yr2F4zb5efwBFXG4z+IQWBeWNTEFzW6 eqyrczQsSOcYnQ==; Date: Mon, 06 May 2024 17:03:22 +0300 Message-Id: <86msp3avh1.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= , Ihor Radchenko In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Mon, 06 May 2024 14:35:42 +0200) Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing References: <86ttjbb1pu.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Cc: 70796@debbugs.gnu.org > Date: Mon, 06 May 2024 14:35:42 +0200 > > Eli Zaretskii writes: > > > Where's the evidence of "frequent GC" in this profile? > > I didn't say the profile is evidence of frequent GCs. > > > (And "memory profile" has nothing to do with memory usage, contrary to > > popular belief.) > > > >> Disabling bug-reference-mode in the Org buffer makes it stop constantly > >> GCing. > > > > I believe you. But showing the number of GCs (e.g., using the > > variable gcs-done) would tell us the story more convincingly. > > Alternatively, if you can share an Org file where this could be seen, > > please do. > > So, believe me. Or not, as you please. I said where the Org file is at > the beginning. Ah, okay, sorry for missing that. I tried to scroll through that with Emacs 30 from master, and here's the CPU profile: 20 74% Automatic GC 4 14% - command-execute 4 14% - call-interactively 2 7% - funcall-interactively 2 7% - scroll-up-command 2 7% scroll-up 2 7% - byte-code 2 7% - read-extended-command 2 7% - read-extended-command-1 2 7% - completing-read 2 7% - completing-read-default 2 7% - read-from-minibuffer 2 7% redisplay_internal (C function) 3 11% redisplay_internal (C function) 0 0% ... I get roughly one GC cycle per full scroll top to bottom. Interestingly, bug-reference-fontify is not in the profile, perhaps because it's lower-resolution than on your system with "memory" profiler. And here's the profile with bug-reference-mode turned off: 15 48% Automatic GC 8 25% redisplay_internal (C function) 8 25% - command-execute 8 25% - call-interactively 4 12% - funcall-interactively 3 9% - scroll-down-command 3 9% scroll-down 1 3% - scroll-up-command 1 3% scroll-up 4 12% - byte-code 3 9% - read--expression 3 9% - read-from-minibuffer 2 6% redisplay_internal (C function) 1 3% - read-extended-command 1 3% - read-extended-command-1 1 3% - completing-read 1 3% - completing-read-default 1 3% - read-from-minibuffer 1 3% redisplay_internal (C function) 0 0% ... This does fewer GCs (about 75% of what I see with bug-reference-mode turned ON), but not by a large factor. Looking at bug-reference-fontify, I see that it conses a string -- but it only does that when it finds a match for bug-reference-bug-regexp, and there are no such matches in igc.org on the branch, AFAICT. So I'm not sure which part(s) of bug-reference.el make a lot of garbage, or why. Ihor, any ideas? From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 10:09:37 2024 Received: (at 70796) by debbugs.gnu.org; 6 May 2024 14:09:37 +0000 Received: from localhost ([127.0.0.1]:38301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3z28-0004yH-LV for submit@debbugs.gnu.org; Mon, 06 May 2024 10:09:36 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:45154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3z23-0004xx-Sx for 70796@debbugs.gnu.org; Mon, 06 May 2024 10:09:35 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a59a9d66a51so420139766b.2 for <70796@debbugs.gnu.org>; Mon, 06 May 2024 07:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715004541; x=1715609341; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=U7oXAY04NAS4MvkUdO88GSbK2ABXQFtiA2/30RtgQFo=; b=et7VEff+6vVh+/+/Y56w8xNOWapUZ/1w4Fo7kIGQdG/KlO+GYnf2tRU3ROn3QRHKAD EDl76SYHC4czzP8mJP5hE7yaNnRsSVtGjB4oqJS4TakqojpFph6zPrNCvcmVwO4Hfo6Z NyGyNPyBvv7TB5rr6FuTJz31v5jaYvjdaRgGAABoc/afHuiRJnkzZWyf71e8HVvluPkX MxECZm8/xq1FdPSvRLI+YBMQgZ6yDnk1yfvJY0lJXHhcCfy/d7x2+eNk2oWCbgFGLXJK +eb0s5U9vRQixF0kCCZ8GUr9JvCo67il+4qa1exsucF/SNH9fSuCzLkv8RKxuKKlHLFv PqnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715004541; x=1715609341; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U7oXAY04NAS4MvkUdO88GSbK2ABXQFtiA2/30RtgQFo=; b=ddarZrMiIr6ZJVK3Gi/0cFe6DQ12zMFzC9cou5JRbigFgbDf4npiPsf++tpgXypf4a ugiDBGDo2v7k4UI9BnOfW4W+8hSWMsxQXZe73IsFFxBoDAEMOf6a4KRrixgtvVVKSidM 2Sm+MJ125GBo/YtYbFk1XD2OCKmcx5GBNALSevoGA+IbvYLq3qiYfzf14QKofRwQmy+5 kLtU/shEV8YR/sMRh7pqUTfTdR8jmJ0uAactQbsEjYnnns2rA8dThv49YYBvt/K+3F8G tEiVsTWElWItFzLYoJ5RaD1Cwxjc2rFxaPImG/hMsHoijC10CDdVG5/qkvJQOZez6iHB Lpdw== X-Forwarded-Encrypted: i=1; AJvYcCXUbD8Q440x6zACa8yJMkLZL0QpLQ8UgnWPdHQLRivOySSiGi8411N0rjrBhJg76T5aVLEZPlNtbMdb4nVYuoOhxut7Hsk= X-Gm-Message-State: AOJu0YxA3HYIpdg8yncrZwpF78/GuRkmRfrbtbG2NaOsDoaqYjAP/M16 kobXcAH1ZUe/u2c8q5xZqb4oR4i77JCzgMJ9WGFxaviyVVnbwrBrnRLHUw== X-Google-Smtp-Source: AGHT+IEOW8XlKcfY5YZiBg4RPXQ62OhKgWc/pOCa1gWOQ1Lmb1zWoaAHhTYb0ps7Q23MtWat+mmcYQ== X-Received: by 2002:a50:ab53:0:b0:572:952e:7a5e with SMTP id t19-20020a50ab53000000b00572952e7a5emr6700594edc.24.1715004541448; Mon, 06 May 2024 07:09:01 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a55e.dip0.t-ipconnect.de. [79.227.165.94]) by smtp.gmail.com with ESMTPSA id g21-20020aa7c595000000b005729337f955sm5181557edq.97.2024.05.06.07.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:09:01 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <86msp3avh1.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 May 2024 17:03:22 +0300") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> Date: Mon, 06 May 2024 16:09:00 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Ihor Radchenko , 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > So I'm not sure which part(s) of bug-reference.el make a lot of > garbage, or why. This maybe completely wrong, but my suspicion was that bug-reference somehow triggers Org fontification, which creates more garbage. If that's possible... From debbugs-submit-bounces@debbugs.gnu.org Tue May 07 02:59:24 2024 Received: (at 70796) by debbugs.gnu.org; 7 May 2024 06:59:24 +0000 Received: from localhost ([127.0.0.1]:42371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4EnM-0005jP-D8 for submit@debbugs.gnu.org; Tue, 07 May 2024 02:59:24 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:56474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4EnG-0005jJ-SA for 70796@debbugs.gnu.org; Tue, 07 May 2024 02:59:22 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a59b178b75bso449552366b.0 for <70796@debbugs.gnu.org>; Mon, 06 May 2024 23:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715065128; x=1715669928; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J2k5dAWS0vV69MmRrlszxHMaLwRDLWLkbrBqmv4Lkts=; b=fWezdZK4Ht9gnR/76hn6ytP/6F5j0DIsi4JxyfXmXtCE1sYoEbTzY9OvT8BWUuMz8n 4S7ABa+9vMjqrNksHS8ngxBYqABhvJfFOzFUkfGN6FwTPIR9NydIzQTS50i3HS4LGS/W 2AbVoSbvB1x36Z+HljGUCpW0ntYkLsJdOmA2nfzePaEmxYSsXygZWn6d3ULKHzdPCGuh FnPyQYjm/bX1DqhA84295dPelQtSTAjKPs9ZyLmKw3Vanc7YpeJl5lj9drKeAXji4iXR ddzTXZGz6CcpB3UkNHeHYIMjnmrLWeVd/cRWtv/n0jKNqk+l7hspjKZn+BOL1J0pHHOO NCQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715065128; x=1715669928; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=J2k5dAWS0vV69MmRrlszxHMaLwRDLWLkbrBqmv4Lkts=; b=NWLUvUahhUW3d7Cef84ZpnSyWq1G9XuDo0ykIrBbzXFxK6B2UYYN+CAJ+Oi3EiupZM GA5kblehxEiPLghXPI9PQvrDQAjimJlBa1+tLXNznInH0flK/MPyM3EtiiK/NbJ8qwQS N/nsOV+BO0GgcUmpdDkzt0Tx0RvCU6h6E2d4FQ99MtmyBp98Mb3j3GZgz353NjT2kKOb fuAbkVp+Xi88BTNliYcnoSI0/akDvSYPjwzNbFP3qfm8A6i3qkZfwTo1iXLXmMZaUL62 PSPK2VpDh/MDLbe0BjKOT46eRvdMi4fB/OHbVKy+wxJhogHG1eVHtnmViH/Io+cBZB+y GDgA== X-Forwarded-Encrypted: i=1; AJvYcCUdeRTMj3deTM66CWzFCol9XmCKuMlvIs2u7EKLA2cODsUEt5ZanJt95BKEnB6l60awNXpGpX6mgfHZ5HGSWPInqAfs+Mo= X-Gm-Message-State: AOJu0Yy+VeW3v9+6KJu6nxk0wB7/8a4sOfbNxj5SZt3QA9vbVwjF9ULk lcdjFT4WiWptxw9YxMaG13954zYZuHhTEMgWqE/A9q21TbZfcae5ZbUypw== X-Google-Smtp-Source: AGHT+IEPB8UCwiRBCxXfRg3LO56T6AtWQjw9EnQDYCSqeY/rHdcq3dxPYni9FDB8PpeBsBhiTd96Gw== X-Received: by 2002:a17:907:6e87:b0:a59:d063:f602 with SMTP id sh7-20020a1709076e8700b00a59d063f602mr3218827ejc.29.1715065128086; Mon, 06 May 2024 23:58:48 -0700 (PDT) Received: from pro2.fritz.box (pd9e36718.dip0.t-ipconnect.de. [217.227.103.24]) by smtp.gmail.com with ESMTPSA id b19-20020a1709062b5300b00a59a05a8030sm4309237ejg.25.2024.05.06.23.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 23:58:47 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 06 May 2024 16:09:00 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> Date: Tue, 07 May 2024 08:58:46 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Ihor Radchenko , 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > Eli Zaretskii writes: > >> So I'm not sure which part(s) of bug-reference.el make a lot of >> garbage, or why. > > This maybe completely wrong, but my suspicion was that bug-reference > somehow triggers Org fontification, which creates more garbage. If > that's possible... Maybe bug-reference-fontify should return a list (jit-lock-bounds beg end)? Looks to me like if it doesn't we could end up fontifying the whole buffer for Org. See jit-lock--run-functions. Not sure but the behaviour looks like somethign like that could be happening. From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 02:28:28 2024 Received: (at 70796) by debbugs.gnu.org; 18 May 2024 06:28:28 +0000 Received: from localhost ([127.0.0.1]:59556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8DYS-0003F5-Jc for submit@debbugs.gnu.org; Sat, 18 May 2024 02:28:28 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:55650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8DYQ-0003Ex-IM for 70796@debbugs.gnu.org; Sat, 18 May 2024 02:28:27 -0400 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59cf8140d0so465971566b.3 for <70796@debbugs.gnu.org>; Fri, 17 May 2024 23:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716013637; x=1716618437; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LUO4Wdh92mptlEswBunpHv2jBHX+Ra3QWQ9s6y9y+Kc=; b=Lbu7H5JRJJbuidgKc59XHAfRHXkTS6QWoel2qzZToxqYLNOW1mv0sp3jLuLfRQVi2F IgSR3W4wvrrf05E574/IfKd+D9lRSDgo3uooBiouuKAi7IdRoEfbeBUJwwZvf8FjCUJg +8dSMJgbQDFy8awmC9bn11hXbwM6uOoGHBWTrMInaOlNTWSoM0gKinot5J3Zroaeg4D6 pPU2nIxawR8dWIC+aCBcbv3UctNDSOsBNDiu/le2dQ/XVAsC/KU7ZsQCikLT0lhPBNp7 50hR53PEwLBEPvyfB4kvJMRgn61jcmseaZYJw6+Hr+QNzVDE4Q44XZzSQ/guftvVtRh4 9BOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716013637; x=1716618437; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LUO4Wdh92mptlEswBunpHv2jBHX+Ra3QWQ9s6y9y+Kc=; b=ehNOZsNwJ/RbeE9pklttIK65puLHRv+HVZkFyCiI++/MmpjJDPKkitP6eMctrEqOY7 +STbbwhaXR1FN8W1PprjY4GAXQSnq1jY/apCvtowayn9z5gTzHFSFcpoqh+yOyCD7Q2g cF24iEDghcRvcgSU5eok4zKrANNfXe43GjLwYDEtObYxAqCApaxd/J/Qh2t+EnL8HpQi S3QGhWshaihqiigpNZ5mbPkDJ+eLLiRFaGOcCg7WyFXKxV6ORzx91PQ3tMUcrGMSJUaf rI/0gQZhP7tSSeM6VFhKl6Z4b32D8puVY0Z2thKq1p2JEAVtLV33jCdTHIqIuhNXIehh zLDw== X-Forwarded-Encrypted: i=1; AJvYcCWFQopjt+NffW6xCUHL3xY3nycSu8xqIPNNT7+ynv/uoeKhfXE/dCC3auG6H15yyNRe5GOLBXVjIfgI6xOrWGkdrZHTL50= X-Gm-Message-State: AOJu0YweHvUjq1CSpMF2v79MmVmXZ67Oy1uQTN7O8RCmLFxqbceQHdv9 unHypDm3AJQ6GHtIdPj1YuAPIPe9oiaUHQIljKV/80knfSxHgF97rMu6zg== X-Google-Smtp-Source: AGHT+IFHDQsLVR7+z+I+KGpuGoHnmpQOjxWN3bl+uKfI56FnakMFbFh/rp9g3WGYUojxafLC6yNc3w== X-Received: by 2002:a17:906:b0c:b0:a59:d5f7:a697 with SMTP id a640c23a62f3a-a5a2d54c47fmr1506378566b.9.1716013636980; Fri, 17 May 2024 23:27:16 -0700 (PDT) Received: from pro2.fritz.box (pd9e36a11.dip0.t-ipconnect.de. [217.227.106.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b178b1sm1188681966b.191.2024.05.17.23.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 23:27:16 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 07 May 2024 08:58:46 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> Date: Sat, 18 May 2024 08:27:15 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Ihor Radchenko , 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Eli Zaretskii writes: >> >>> So I'm not sure which part(s) of bug-reference.el make a lot of >>> garbage, or why. >> >> This maybe completely wrong, but my suspicion was that bug-reference >> somehow triggers Org fontification, which creates more garbage. If >> that's possible... > > Maybe bug-reference-fontify should return a list (jit-lock-bounds beg > end)? Looks to me like if it doesn't we could end up fontifying the > whole buffer for Org. See jit-lock--run-functions. > > Not sure but the behaviour looks like somethign like that could be > happening. Ping From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 04:08:05 2024 Received: (at 70796) by debbugs.gnu.org; 18 May 2024 08:08:05 +0000 Received: from localhost ([127.0.0.1]:60178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8F6q-0007HK-LQ for submit@debbugs.gnu.org; Sat, 18 May 2024 04:08:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8F6o-0007Gx-Sz for 70796@debbugs.gnu.org; Sat, 18 May 2024 04:08:03 -0400 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 1s8F6f-0006hY-If; Sat, 18 May 2024 04:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gT8j2s/r2vnlsKblfEoVscKzhcTEivQ0a0D1RXWgx2U=; b=Ix6Tg/IhjIiejmX6pXCI C24d+oxMTQUElFQ4e6tjQ4gj7zyAV4CQ+W+OurU8XZpWgmX6FapyQJ5WxVJx2KNRVrT1e4Rk0qZ+X gpU3iuQtsU/JU24368ZvxpejHGqWvGU1shNDjBAlhfvAQDZJXT40Ptj/93tLUDHlqmEpEMzTWJt9X 4ABKRGy4qtDTO60CBD2GhNiHVkYAwoPecu/sis+LHFpvU3WKNPNXLT6Difrq5VE2mKQFHrwulEuA3 pmpP5VKE6V2MKOOlYOevGFqESHmG2YthtyM5/8HySflfLtUpHiFYjCv8bK5SCVYKEVOavCS+GKOiQ bxMWF6+NVWU+rA==; Date: Sat, 18 May 2024 11:07:50 +0300 Message-Id: <86bk53fsq1.fsf@gnu.org> From: Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= , Tassilo Horn In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Sat, 18 May 2024 08:27:15 +0200) Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gerd Möllmann > Cc: Ihor Radchenko , 70796@debbugs.gnu.org > Date: Sat, 18 May 2024 08:27:15 +0200 > > Gerd Möllmann writes: > > > Gerd Möllmann writes: > > > >> Eli Zaretskii writes: > >> > >>> So I'm not sure which part(s) of bug-reference.el make a lot of > >>> garbage, or why. > >> > >> This maybe completely wrong, but my suspicion was that bug-reference > >> somehow triggers Org fontification, which creates more garbage. If > >> that's possible... > > > > Maybe bug-reference-fontify should return a list (jit-lock-bounds beg > > end)? Looks to me like if it doesn't we could end up fontifying the > > whole buffer for Org. See jit-lock--run-functions. > > > > Not sure but the behaviour looks like somethign like that could be > > happening. > > Ping Tassilo, could you please take a look at this? From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 11:49:59 2024 Received: (at 70796) by debbugs.gnu.org; 18 May 2024 15:49:59 +0000 Received: from localhost ([127.0.0.1]:34142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8MJr-0006Pq-1b for submit@debbugs.gnu.org; Sat, 18 May 2024 11:49:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8MJo-0006Pg-Qd for 70796@debbugs.gnu.org; Sat, 18 May 2024 11:49:57 -0400 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 1s8MJf-0000db-UU; Sat, 18 May 2024 11:49:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:References:In-Reply-To: MIME-Version; bh=2SspjZNYCQVAuL6ZpZucmryPQhBJ07AKUOyZCEZbpRM=; b=isOzxLGbd4Ei dffGahdUVs8/09xMKCj4f2fgRI1quaPQrsC1RxJ2cg33/jul7NQgzwkLYnrpVj5SZCi6PdS4ACaE/ 3GdKJXWYvFuhfQKVDsrWTcIDO+2p3+H6x4dqUiIcETyaofVjWVZmHZjIp14UrY0TpzZbEekZ1ZsQM K8MbDaDx4H93i3xMrvhDwBgvcJyQh5ErP6aUxmh1G1eCxPp6JQ+GjaN+FDcC8eNR04aYs5dTH0/hZ n7v+91O53ty/fgAArVZBScNFDR/GbpK0L5hc8xmL3W2yrob/HbBN9L4IDeKKpGi4GJOsIBt1IrDlY R4S1Gl6Z0eN26QYYq5R8CQ==; X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehiedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfv rghsshhilhhoucfjohhrnhdfuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtth gvrhhnpeehhedtkeffgedvkeeuieejffefhedvvdevtddvveetvefhhfduiedutdfhgeff jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthh horhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedq ieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-456-gcd147058c-fm-hotfix-20240509.001-g0aad06e4 MIME-Version: 1.0 Message-Id: In-Reply-To: <86bk53fsq1.fsf@gnu.org> References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> Date: Sat, 18 May 2024 17:49:15 +0200 From: "Tassilo Horn" To: "Eli Zaretskii" , =?UTF-8?Q?Gerd_M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi all, it's the first day of my vacation so I'm away from the computer until ne= xt Saturday evening at best. But then I'll have a look.=20 Bye,=20 Tassilo=20 Am Sa, 18. Mai 2024, um 10:07, schrieb Eli Zaretskii: >> From: Gerd M=C3=B6llmann >> Cc: Ihor Radchenko , 70796@debbugs.gnu.org >> Date: Sat, 18 May 2024 08:27:15 +0200 >>=20 >> Gerd M=C3=B6llmann writes: >>=20 >> > Gerd M=C3=B6llmann writes: >> > >> >> Eli Zaretskii writes: >> >> >> >>> So I'm not sure which part(s) of bug-reference.el make a lot of >> >>> garbage, or why. >> >> >> >> This maybe completely wrong, but my suspicion was that bug-referen= ce >> >> somehow triggers Org fontification, which creates more garbage. If >> >> that's possible... >> > >> > Maybe bug-reference-fontify should return a list (jit-lock-bounds b= eg >> > end)? Looks to me like if it doesn't we could end up fontifying the >> > whole buffer for Org. See jit-lock--run-functions. >> > >> > Not sure but the behaviour looks like somethign like that could be >> > happening. >>=20 >> Ping > > Tassilo, could you please take a look at this? From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 16:00:22 2024 Received: (at 70796) by debbugs.gnu.org; 24 May 2024 20:00:23 +0000 Received: from localhost ([127.0.0.1]:38892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAb5S-00068q-Jl for submit@debbugs.gnu.org; Fri, 24 May 2024 16:00:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAb5P-00068g-Bm for 70796@debbugs.gnu.org; Fri, 24 May 2024 16:00:20 -0400 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 1sAb5B-0004qJ-SW; Fri, 24 May 2024 16:00:05 -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=VSXtv+3SIZAGhYYvzFwfqgaB42W95wYAALCEeMEMyl0=; b=R4AfFpMQ6/NrQSZQiu/L GPRbw9pZ/3NupNub4kMgODS18MNEnMWNKp15atXr3bgoc0etU97y166yubiqkPYVJAJd8gSYRwb+f jRKZjHhl3RE56My+k80tOj4QwDK+tGEFY9W+xw2MWo/0CRkl3oZcfCVX1eeyLyzVUqQXWBQGuVFaD n0dPA98iNwVqkmvHSwn/lDo7EHrLO11+6bezUfWjt5DmEsXLpcxhrbjPXy5aBqxI0/kT+4HwXB+/Q zSbRtL5iM8pvDDCf1AB/Sbw7xOGD2uFI2BYszCyd+KL0FVt5eFfEG2p0naoloM/reLjlSH3AX9CuD ExeZjNOOK3s1Ug==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe etledtgeehfffhteekkeevkeekvefggeekteeuffelieehkefhgfffueeugeeiffenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <86bk53fsq1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 May 2024 11:07:50 +0300") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> Date: Fri, 24 May 2024 22:00:00 +0200 Message-ID: <87sey7dlq7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: Hi all, I'm back and had a look at this issue. >> > Maybe bug-reference-fontify should return a list (jit-lock-bounds >> > beg end)? Indeed, that's what I'm doing now. I'm not entirely sure if that fixes the GC issue but it's certainly a good idea anyhow. Please report back if it helps. Thanks, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 16:20:49 2024 Received: (at 70796) by debbugs.gnu.org; 24 May 2024 20:20:49 +0000 Received: from localhost ([127.0.0.1]:38995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAbP8-0006JW-Mm for submit@debbugs.gnu.org; Fri, 24 May 2024 16:20:48 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:49305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAbOs-0006JM-Jv for 70796@debbugs.gnu.org; Fri, 24 May 2024 16:20:41 -0400 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4200ee47de7so69267415e9.2 for <70796@debbugs.gnu.org>; Fri, 24 May 2024 13:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716581953; x=1717186753; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ws2q0dtq7gWKvjAh44CPydy/LXhHhWIeS8VwC8Ie0Ww=; b=X9WtszY/D9ga/OnP9sQpB6GuL1eoodtQ1CudU+oBOvjyNW8H2aOXkqmv4ehxoEUWfp slt2/KYzUzPlZ2K+WsqJVRvzyEPF4y4oBi8iMQMnreJTByEyGpo/0AJuupBJHukb4O6D NOC8pPoalTUb/CMfqjHcXS+U1I1RkZO4gyDDecgemxGA0W/y5xiSca29q4yZy7jB2lq3 MNt75WBXKs9VZbkLqmo3FvJE0cI+ZcG4VTI60xc2b2/J9QnFuCjvAoc8V3spFSBhT7HP k9zRaAE+G4v5MUutVDAV3PfMQ8Oxlgkxi9v2YbOEeo4HOeydXPlOq1tAn0B3ORBfjmOp iOMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716581953; x=1717186753; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ws2q0dtq7gWKvjAh44CPydy/LXhHhWIeS8VwC8Ie0Ww=; b=fI8fSDJg5aVebD6IWwjVmmji99hQdXKmNET67ol6YHO6RHjVJeD47ydyQgSkCb5IvW 6IND7CapkYDUW1WSxD1kJcgbJ9SD1MI6h10byPxUgle1+lgc9+OkENEc2GtsYlSdGiDM l5ZxZudQ06RVhhzjMDRsZLN3ykbVVFzmRbzD0YvYjyv2A/VqJksmAHDW2HMmY80R1rv6 qwHNhfy9NAVxZzwMu5qtg+Ed18kLQgt0sLkLBUKo9/dm4fyWp+DYopakGTsfF0ov2lHs VeigJHu+iahi5F9oRz0xiCEBb5YlImrCKD0H5G57rQns0dE+XPZjh6N4g6HOLabA2kKz 3ufQ== X-Forwarded-Encrypted: i=1; AJvYcCVFaY++ZOF33soNNNWeRMPXwDL66Xu03qHkohwT0C03AHeKZZKZSAy228SCk20DWUt+3Ahj/7UR5m70aI/ITo1ZGPz7KKA= X-Gm-Message-State: AOJu0YzJi7jd+evhzQ9lmUjNgUyf9mFI6k84IBwq7mwNLZt36iiD6Z5S Ih7fyiiaQtBZ8hfUWr8u3IZfSMrsXh368+h98Q6b3X3fLneaPgobn5PE1g== X-Google-Smtp-Source: AGHT+IEDxY2Zw5fKlHR+C5kFUFMx9HOJaOxkElWx6pvE3E6PrLyir0j2vXLz64/g4cKiKoTjfxP3HQ== X-Received: by 2002:a05:600c:56cc:b0:41b:55b1:6cfc with SMTP id 5b1f17b1804b1-421089f135emr30979485e9.1.1716581953082; Fri, 24 May 2024 13:19:13 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a529.dip0.t-ipconnect.de. [79.227.165.41]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557dcf06c4sm2294692f8f.104.2024.05.24.13.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 13:19:12 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Tassilo Horn Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <87sey7dlq7.fsf@gnu.org> (Tassilo Horn's message of "Fri, 24 May 2024 22:00:00 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> Date: Fri, 24 May 2024 22:19:11 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo Horn writes: > Eli Zaretskii writes: > > Hi all, > > I'm back and had a look at this issue. > >>> > Maybe bug-reference-fontify should return a list (jit-lock-bounds >>> > beg end)? > > Indeed, that's what I'm doing now. I'm not entirely sure if that fixes > the GC issue but it's certainly a good idea anyhow. > > Please report back if it helps. I'm afraid it didn't help yet. It's still GCing constantly, without doing anything. (I used your fix in a running Emacs, with the following change: modified lisp/progmodes/bug-reference.el @@ -196,10 +196,10 @@ bug-reference-fontify (funcall bug-reference-url-format))))))) ;; Delete remaining but unused overlays. (dolist (ov overlays) - (delete-overlay ov))) - ;; Signal the bounds we actually fontified to jit-lock to allow for - ;; optimizations (bug#70796). - `(jit-lock-bounds ,beg-line . ,end-line))) + (delete-overlay ov)) + ;; Signal the bounds we actually fontified to jit-lock to allow for + ;; optimizations (bug#70796). + `(jit-lock-bounds ,beg-line . ,end-line)))) ;; Taken from button.el. (defun bug-reference-push-button (&optional pos _use-mouse-action) From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 16:27:38 2024 Received: (at 70796) by debbugs.gnu.org; 24 May 2024 20:27:38 +0000 Received: from localhost ([127.0.0.1]:39026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAbVp-0006Ms-Ki for submit@debbugs.gnu.org; Fri, 24 May 2024 16:27:37 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAbVj-0006Mm-TN for 70796@debbugs.gnu.org; Fri, 24 May 2024 16:27:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C237F240103 for <70796@debbugs.gnu.org>; Fri, 24 May 2024 22:27:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716582438; bh=nP7YAIYqx84dClj/2xfmQw1gNaUp9CbYR5a752DJ16A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=SEoHaS36og+WVVJ7bmWeIMyTgtSfgMzDUpny+dy8MHQU0Do8tGR/9agTkBaCeTk/h O+IC017BogPzRFLSWKOJoGWQgf+mlPI96Tb6xnF2M9hXQ0NKNDU1b90Miy92PKWEGt gT3FlWpMoWLGFPPOR4Yxcf4p3y69FFrWg3fKLfkWgg44JIkouPHK0cgXYqFWfh03Dc LleggZaLUv7JLIxKTjD8LSMNX5mf3AQVE3RTd8RPaxczteYHG+n4RU0fnBQcCru5XR m15VVGWoFtB7pUYuDaKlEVTH+2wVAp7Co363GVffC9Fwhml8+FNu6rjfnz39OKsJ63 Kz4/ItiOFtYUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VmGmj5rLtz6tvc; Fri, 24 May 2024 22:27:17 +0200 (CEST) From: Ihor Radchenko To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> Date: Fri, 24 May 2024 20:28:57 +0000 Message-ID: <87ttin6jjq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > I'm afraid it didn't help yet. It's still GCing constantly, without > doing anything. FYI, I have no problems on your file and I do have bug-reference-mode enabled in all buffers. Do you have a recipe starting from emacs -Q? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 17:34:46 2024 Received: (at 70796) by debbugs.gnu.org; 24 May 2024 21:34:46 +0000 Received: from localhost ([127.0.0.1]:39301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAcYn-0006uZ-PN for submit@debbugs.gnu.org; Fri, 24 May 2024 17:34:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAcYm-0006uT-2L for 70796@debbugs.gnu.org; Fri, 24 May 2024 17:34:44 -0400 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 1sAcYY-00055N-GI; Fri, 24 May 2024 17:34:30 -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=4Gp2kTGfT1FvXJBvTwjknYR60bKbSReLSw6MiUHuZ0k=; b=AmkPzTWvWs7OPNEo81vw QOl+jPy19suU6IvJjDHmKey7jBPpTTyc6LAyR7YHydLPn0xNt0TlskyRdz+1cN5wBA3t7uuZ9bVlJ yFgOEgxDUzARXy11Md5Bj5yLAdQ+Ocxc41EHvIR2nK4cgpajFycSMctccAt/yaZ/eu3OGlp0Cl0Ua xuM+9814E5TBcVqReI902XxOBEjUa5C0YrVAXzWg63TvsC73wyShjQ+tYiizN7gdt32kQF5HOWtr3 Xto2OCayU8hwSojFGdRDWUz/04AptSk7jLkowzTq+Rc23LW6iGK/2LzTDLE14Os/l7czGFMW30TwS 7G1xSHuSZBdNwA==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeikedgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epudekveetuedvteetjeevteeijeehtdetfeffvdekieekvefftdetgfevieelhffhnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnh domhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeeh vdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Fri, 24 May 2024 22:19:11 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> Date: Fri, 24 May 2024 23:34:24 +0200 Message-ID: <87msoerj1b.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: >> Please report back if it helps. > > I'm afraid it didn't help yet. It's still GCing constantly, without > doing anything. > > (I used your fix in a running Emacs, with the following change: Oups. Fixed on master. But anyhow, I don't see how bug-reference-fontify could be so costly GC-wise... FWIW, I think goto-address-mode (buttonizing URLs and email addresses) will probably have the same effect, at least the code looks pretty similar. Can you confirm? I'll have a look at you sample file tomorrow. How do you make GCs "visible" so that I can see when excessive GCing starts/stops? Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 00:10:08 2024 Received: (at 70796) by debbugs.gnu.org; 25 May 2024 04:10:09 +0000 Received: from localhost ([127.0.0.1]:40868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAijQ-0001mJ-M0 for submit@debbugs.gnu.org; Sat, 25 May 2024 00:10:08 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:61888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAijN-0001lo-UN for 70796@debbugs.gnu.org; Sat, 25 May 2024 00:10:07 -0400 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2e72224c395so70770601fa.3 for <70796@debbugs.gnu.org>; Fri, 24 May 2024 21:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716610130; x=1717214930; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y5dxxK+yhLONprGJsfVKZIr9cFHvY1XcvnQWmQtbtIQ=; b=dIiJ4OIdFFeDfOIPG8X17ViAY0cvIQcpa5WZxW9R+3ASyUYdMNbM2fCsexeTEX7oYz JjEbsmUxkTKxUe2DgBt7RI5VkU+3I6B4QDlejZl2LUNCqphneCgDrnZhMqY6q3iAj9Zj ePw1h0zRRDVsWnGeRqrUQ++rT/3AO/svm9E9UvpbhPmx3B6V3uuBGNoz0U2/TVPrb+Tt v0hh2HKCaaSukb5EvsV8oqCOOZ6dDpyAK+k8Hqy3OwpfSCsbzYM568WBzCEZNnNR68U3 52aBdQXFlYFex8bAY9uGG0Me2KzaefgZ0A0LMFeouI2WWrdAn8O8uRhhoPtPWbLI+/uC t9Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716610130; x=1717214930; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Y5dxxK+yhLONprGJsfVKZIr9cFHvY1XcvnQWmQtbtIQ=; b=JwrSafn8ocI45/KxGCijXynOl20UjMyWM6WJYO5EEA08fDeu/Wupkluf0Fa1TlIgfQ /GKwZ7+rb1TmSGomLzJhiufrQTjPoyVqUYHZD2cQvvTbtYXcasIiqPQ2Skl9S6hZduXy ZrLzPtYD00T3QirnyFTlr+Qvv9oAwZlaYOnkEjmyLZth8Lrg+SehKjuH0VDIChctOfyH xif+rA8WSizaOiOdOKSF+ftkYiz/1cs/Vrg2L4ik8ZlkoMTFM+KXCeypI3u9aTmkc3CU jl5xP98VUpA+emgsO4/1Y+I2Y1ygCJHznCt2RUtCdvtC2Kzwt8YiZoJau4d19+VmHPwv zSMA== X-Forwarded-Encrypted: i=1; AJvYcCXlNMTC+WGua1A2Usn6XCnMaSXn9pnLLbtqntxiEWqHD8orE5jlQCaf8gZy14gdyhrPGnPa6MQyyYoJC/xd1LLdi9qNy1Q= X-Gm-Message-State: AOJu0YxzsqPeH10YkJkJeDv/Qs7/SdPxvdxNp0vXyvgr0HM5XXyw7yCZ XUcQ255BimZEDoACeRUjCgwkCJgdm90LG36qpJRPj4cI5HSQ1G4EDgz81g== X-Google-Smtp-Source: AGHT+IFR253qblkuaUEX+4ajBRiUe1Q3MsMzGnu+rtI+0TRFEkWjw24/jSjg7aaIaDhiCib++aAB9A== X-Received: by 2002:a2e:8303:0:b0:2e1:afe7:4cd2 with SMTP id 38308e7fff4ca-2e95b040235mr26140751fa.11.1716610129790; Fri, 24 May 2024 21:08:49 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a89b.dip0.t-ipconnect.de. [79.227.168.155]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-356c8daef27sm784913f8f.115.2024.05.24.21.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 21:08:49 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Ihor Radchenko Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <87ttin6jjq.fsf@localhost> (Ihor Radchenko's message of "Fri, 24 May 2024 20:28:57 +0000") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87ttin6jjq.fsf@localhost> Date: Sat, 25 May 2024 06:08:48 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >> I'm afraid it didn't help yet. It's still GCing constantly, without >> doing anything. > > FYI, I have no problems on your file and I do have bug-reference-mode > enabled in all buffers. > > Do you have a recipe starting from emacs -Q? Not at the moment, sorry. From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 00:35:21 2024 Received: (at 70796) by debbugs.gnu.org; 25 May 2024 04:35:21 +0000 Received: from localhost ([127.0.0.1]:40988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAj7p-00022P-AH for submit@debbugs.gnu.org; Sat, 25 May 2024 00:35:21 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:48387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAj7m-00022H-JV for 70796@debbugs.gnu.org; Sat, 25 May 2024 00:35:19 -0400 Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-57857e0f465so1398919a12.1 for <70796@debbugs.gnu.org>; Fri, 24 May 2024 21:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716611645; x=1717216445; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=JXdUYJwS4FfXjK3c9mRhjI01TVRlJAiz294glwdO7Tk=; b=kh/kxVqP7q+x260wlfw0O7vAfGM6LhO85SAioSS6zPgc/JGAH4jTJOK8QJnKUXFS8e yJFzwckOoTf0u5EZRJHXLRcGQMuyat/B2EA65e+3pBCHYPWGki+NkUk5yTdDHIQFNici ApftTJoZOMc1RBqFgCGKV/bA1kFMIHY9uBZvv2IxYzyHbg/ywstnL3a9vUYTc+kRzH1v rAa1BOc8/M+WIPcqK+Xz5Gc2sMeuYNq9dj0ZfRhGVDYsVDMn5PPXFFrxV3vTUYCAZ3PE A7XyFDo5F4+mP9S3yqQlUSge5pjcRAJmVA9X72/ome4dPCaC0Bn3h+/Nd4f2weRK1wzV VPWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716611645; x=1717216445; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JXdUYJwS4FfXjK3c9mRhjI01TVRlJAiz294glwdO7Tk=; b=S4Iumn1mukUgWmTgp+OQQmeJZWG0wcxwYL2F6ZwZlXJRrZNszIxYEGh+Eq9nA0zp7C YZj4fM9+e23z3+kaJLceuw76WVbB/duqXFDaMWscy7NciqLQR/twd7ioUgWAWLXjMMnA evLQzZHT4dp33NUMAKCM8en7v54HTUh0ezRrMo+SfVq0r2JQPcaYcmBau4A9GYi8hF17 eZLmYlcoAuIVMJZs62ua6v4I2iaxqagwVGe2ONE2wYcfSUWgFEvf/cZBY6P+ToNNH+Gd 3kWEzJ/huW2bcSfg9ocoJTCwrEpN8AQ5uvlJr7+pkmQr6TpFy/t/awUpa1NFds+dKkhY bPiQ== X-Forwarded-Encrypted: i=1; AJvYcCWzhfEFMmqiiG9s+XfxaiCrXVrdR7hyAiLdZGuD8S0HNkaOOCCKmvgKCZpJKhfeWalwCngGPA/s4QvbD42JPYu+g86Cloo= X-Gm-Message-State: AOJu0YwKHKNbQOV+fsjhPTMfkwsOKtvge/HFBd7CRL+IUfZHEWp0K2aQ +if/6M98qNFXSYYbDpQS4C7CdvquYg24JN+zSTX3v7qqD/sMsQwITbCh3g== X-Google-Smtp-Source: AGHT+IFsftg7I1GRxeR3z8oPtG4vuHqbiTol5BePZoUG4T2Qa4YHnZM2qqKMcYLDJURM7ARqqm0xSw== X-Received: by 2002:a50:8d04:0:b0:570:db4:e5cd with SMTP id 4fb4d7f45d1cf-578519a2248mr2761814a12.34.1716611644873; Fri, 24 May 2024 21:34:04 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a89b.dip0.t-ipconnect.de. [79.227.168.155]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5785233a118sm2649999a12.16.2024.05.24.21.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 21:34:04 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Tassilo Horn Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <87msoerj1b.fsf@gnu.org> (Tassilo Horn's message of "Fri, 24 May 2024 23:34:24 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sat, 25 May 2024 06:34:03 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Tassilo Horn writes: > But anyhow, I don't see how bug-reference-fontify could be so costly > GC-wise... It is not by itself, AFAICT. Org fontification allocates which ich not a problem normally, but with bug-reference active, it is triggered over and over again. Interesting observation: I just built master without native compilation because that's faster. With .elcs only, I don't seem to get the constant GCs with 9ebe6aa5f1092241a98e0a16db918e3dc1062f1c which is before your fix. With native compilation I do. Just double-checked that this is indeed the case. Now it gets interesting :-/. This is on macOS 14.5, arm64, libgccjit 14.1. > FWIW, I think goto-address-mode (buttonizing URLs and email addresses) > will probably have the same effect, at least the code looks pretty > similar. Can you confirm? Yes, goto-address-mode has the same effect. > > I'll have a look at you sample file tomorrow. How do you make GCs > "visible" so that I can see when excessive GCing starts/stops? You can use the attached patch to log GC messages in *Messages* which makes it easier to see. Then load the Org file, expand all nodes (S-TAB as needed), move a bit around, and see it happening. And set garbage-collection-messages to t of course. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-On-no-branch-9ebe6aa5f10-lisp-dired.el-dired-mode-map-Bind-E-to-dired-do-open-bug-18132.patch Content-Description: gc-messages diff --git a/src/alloc.c b/src/alloc.c index 28e32554472..7911078ba59 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -6584,7 +6584,7 @@ garbage_collect (void) #endif /* MAX_SAVE_STACK > 0 */ if (garbage_collection_messages) - message1_nolog ("Garbage collecting..."); + message1 ("Garbage collecting..."); block_input (); @@ -6689,7 +6689,7 @@ garbage_collect (void) if (message_p || minibuf_level > 0) restore_message (); else - message1_nolog ("Garbage collecting...done"); + message1 ("Garbage collecting...done"); } unbind_to (count, Qnil); --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 03:37:44 2024 Received: (at 70796) by debbugs.gnu.org; 25 May 2024 07:37:44 +0000 Received: from localhost ([127.0.0.1]:41780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAlyJ-0006nj-JT for submit@debbugs.gnu.org; Sat, 25 May 2024 03:37:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAlyH-0006nW-V1 for 70796@debbugs.gnu.org; Sat, 25 May 2024 03:37:42 -0400 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 1sAly4-0005QL-MS; Sat, 25 May 2024 03:37:28 -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=ELnVgs+AB1B7yy1cEz6P51X/JgboSVdFDBdFQw/aRM8=; b=IE8wTfYnSK2xO0bqKaYb w4HInUrzPGkyNro51aS14FjkKaUBUPhQ0M1qkRT7Q16x+4Xer1rxzXBI2hTg8cMdGY/H9v9fYfQRh 3WNH60FiTEYgVfdpjEDhrTixNGFpNNqU/j5/Ubcx23JThFRw/3J4llOR6Cx2XW4oS6EP/J/JtCbnq lhhLUmA9rtPg9b2FDOORVT2jMD0yLugpNPAJNuEQHHQpsl1CoBflL+M0RkxsKE7sPtPKAx0Qun4JZ j2dQo1AI8u9DRLy+xVPqe6MvDWkBa+2jdJCyijH4HsGhKxD5CXOs1OmIbJadExUT8Czw36aB+Mjgd cbHA8iErWacIog==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiledguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epkeetfeetueelvdejudeikeektdehveelheefvddtheejveehleeuieeugfeuvdeunecu ffhomhgrihhnpegrfhgrihgtthdrohhrghdpihhgtgdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgr uhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhh eppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 25 May 2024 06:34:03 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> Date: Sat, 25 May 2024 09:37:18 +0200 Message-ID: <87jzjiuytt.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: >> But anyhow, I don't see how bug-reference-fontify could be so costly >> GC-wise... > > It is not by itself, AFAICT. Org fontification allocates which ich not > a problem normally, but with bug-reference active, it is triggered > over and over again. > > Interesting observation: > > I just built master without native compilation because that's faster. > With .elcs only, I don't seem to get the constant GCs with > 9ebe6aa5f1092241a98e0a16db918e3dc1062f1c which is before your fix. > With native compilation I do. > > Just double-checked that this is indeed the case. Now it gets > interesting :-/. This is on macOS 14.5, arm64, libgccjit 14.1. I've now checked out the scratch/igc branch and opened admin/igc.org with the current emacs (master branch) with native compilation + your gc-messages patch and garbage-collection-messages set to t. I cannot reproduce the problem. I've also added a (message "BRF") as first expression to bug-reference-fontify. After scrolling the buffer from top to bottom, the function won't be called anymore unless I edit some text. I assume that in your case, bug-reference-fontify and font-lock-fontify-region (the latter including the Org fontification) are run over and over again unless you remove the former... I have no explanation. Especially with admin/igc.org, bug-reference-fontify is essentially a no-op. There are no bug references (text matching bug-reference-bug-regexp), so it's just a regex search with no match and there are no overlays created or moved. How can a failed regex search somehow trigger another jit-lock cycle (and only with native compilation on MacOS)? >> FWIW, I think goto-address-mode (buttonizing URLs and email addresses) >> will probably have the same effect, at least the code looks pretty >> similar. Can you confirm? > > Yes, goto-address-mode has the same effect. Alright. Then you can probably even simplify the issue with --8<---------------cut here---------------start------------->8--- (defun i-do-nothing (start end) nil) --8<---------------cut here---------------end--------------->8--- and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, right? Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 03:59:33 2024 Received: (at 70796) by debbugs.gnu.org; 25 May 2024 07:59:33 +0000 Received: from localhost ([127.0.0.1]:41940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmJR-00073F-FW for submit@debbugs.gnu.org; Sat, 25 May 2024 03:59:33 -0400 Received: from mail-lf1-f47.google.com ([209.85.167.47]:57676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmJO-000737-OL for 70796@debbugs.gnu.org; Sat, 25 May 2024 03:59:31 -0400 Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-529682e013dso1602336e87.3 for <70796@debbugs.gnu.org>; Sat, 25 May 2024 00:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716623897; x=1717228697; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xs8DXbJuthwbLO9ZzJNlZirKpPf86CP3UL3FZiuar4c=; b=Ak4/Cq2nC9g+fg/6YetcuomhDJG/ruUNBQTyUhYZyKixq2QmPUVVETi4yiXZQN8eK1 B4Tyxy1ME6ZasAGLIMe+XAOj12BArsCDqGylvn77woE9cQ/sK81f6HitQVwA8sv3ET5U ygLnfRDAcOsMROYyluxLHsGM17IWz5R5brMVny4TPnvf/56S7y3PwgC6vZTWaWMrved+ h2MIkDMShn6Y1C+AK6NlE7VRCvY6FsmR1BZHZie+uYlbeY8K5UtN/7nK0xemXfhNLRQq AEhCVU76AmpJTWD0OUe8ziONfwRU5g0Vg2IzVTjEsLbT3kfV5z9kztFlyjYa41KO1rzT gVlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716623897; x=1717228697; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xs8DXbJuthwbLO9ZzJNlZirKpPf86CP3UL3FZiuar4c=; b=lj2yLhfURCnJGpX80pFIrsgdwLT48Mwp3fxMMQUBL8bgQrX3LZI+TpMC9FUlV5q5w5 t8qO/4pfwV7vxtIaJI1cHPPdAcSc6KG+b4NAwz6/O4AoWGh7ZbL6QgcGIFevS+hQkAXw m6YYd7BY6kZcOeZeYumj2kUtan0Wbo/9dNb2B7ADfKYp3DW30Os5vkOFWVdhY3qweiKs iyiSGoFiuFcKKciIuHTeq4cNspRYODjmiywp8rAu9HddPUk7gXYIQ84sUMhkVxVuLVhc 9GOCYbVAt2V65u2/nE4shojicUXahqv7O6MWh2+4iitmib1nyIoG6Q8Kmo6IsIazH5Xc T1+Q== X-Forwarded-Encrypted: i=1; AJvYcCUYLwgfNNJqDZL6EUxNr0863ABaZwUN3eQ6MavUcTiKVAublcKr+jsivRQNzSdfI1+YSZE216dlDd7jAPPRBFwJYO0VlGw= X-Gm-Message-State: AOJu0Yw+Ji3Zi2MgkCwdGk0+/zrFDOLFlJ+KbqAR9vBXUM460XXp9vbz PdTjO+duvPKZc6yZ8H8by01MoUv2xkchXBhi8tFvCOE8r9yAMwIL95nvkw== X-Google-Smtp-Source: AGHT+IEQA2/ACoX7cofWAACBmDdYSNT0r+nke8XLaaOc+Y091LviupoiVKUr7Tjit5R0qedAQaXa6w== X-Received: by 2002:a19:3806:0:b0:523:683a:f5ed with SMTP id 2adb3069b0e04-529644ec004mr2825146e87.9.1716623896705; Sat, 25 May 2024 00:58:16 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a89b.dip0.t-ipconnect.de. [79.227.168.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cda8f98sm225459166b.218.2024.05.25.00.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 00:58:16 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Tassilo Horn Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <87jzjiuytt.fsf@gnu.org> (Tassilo Horn's message of "Sat, 25 May 2024 09:37:18 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> Date: Sat, 25 May 2024 09:58:15 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo Horn writes: >>> FWIW, I think goto-address-mode (buttonizing URLs and email addresses) >>> will probably have the same effect, at least the code looks pretty >>> similar. Can you confirm? >> >> Yes, goto-address-mode has the same effect. > > Alright. Then you can probably even simplify the issue with > > (defun i-do-nothing (start end) nil) > > and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, > right? Yes, same problem. In a native build with current HEAD, 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3. As I mentioned, no problem without native compilation. I guess you have an x86 cpu? Just to make sure... From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 04:17:49 2024 Received: (at 70796) by debbugs.gnu.org; 25 May 2024 08:17:49 +0000 Received: from localhost ([127.0.0.1]:42026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmb6-0007Du-Qp for submit@debbugs.gnu.org; Sat, 25 May 2024 04:17:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmau-0007Do-9n for 70796@debbugs.gnu.org; Sat, 25 May 2024 04:17:48 -0400 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 1sAmah-0005N6-BB; Sat, 25 May 2024 04:17:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:References:In-Reply-To: MIME-Version; bh=HkVpen1PHUmspBNoDf9Ijz0YxUL0mOOWLsQyGtM8chg=; b=KzUy0KGD7+d9 bRQAx819BAx2qDw8ZvdcXHfZnYnKM8Ieq3v1MjRf/msnVAoONpW4nQXtPYAcp1jb1iZuvyZdGLgRs 3aBvfsZkf5hn2A1E0mDLiJq4ip+LKnTi5SdXaupqf0jBOtRZu150xdGZQV6fxmWn5jDCLzbtEeHo5 azkqw/L85OLZ/Tg6vePzbo90RVywsE2sraI0lIEgFodtrbItWw1Cx0cTN5gnMHSN0EQiJmLMGqu2C 1/KV4Dh/Icdip6bAkVw2ZCjAbjmqVDTe/0fif0Io9kjHNo++yfL7Fkx73SRa2XEvcVwNG9lS0Myv0 0ZXXeFoKkpPZWgxs4P+MhQ==; X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejtdcutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedfvfgrshhs ihhlohcujfhorhhnfdcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epheehtdekffegvdekueeijefffeehvddvvedtvdevteevhffhudeiuddthfegffejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnh domhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeeh vdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-480-g515a2f54a-fm-20240515.001-g515a2f54 MIME-Version: 1.0 Message-Id: In-Reply-To: References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> Date: Sat, 25 May 2024 10:17:03 +0200 From: "Tassilo Horn" To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , 70796@debbugs.gnu.org, Ihor Radchenko X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Yes, right, x86 on GNU/Linux. Am Sa, 25. Mai 2024, um 09:58, schrieb Gerd M=C3=B6llmann: > Tassilo Horn writes: > >>>> FWIW, I think goto-address-mode (buttonizing URLs and email address= es) >>>> will probably have the same effect, at least the code looks pretty >>>> similar. Can you confirm? >>> >>> Yes, goto-address-mode has the same effect. >> >> Alright. Then you can probably even simplify the issue with >> >> (defun i-do-nothing (start end) nil) >> >> and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, >> right? > > Yes, same problem. In a native build with current HEAD, > 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3. > > As I mentioned, no problem without native compilation. I guess you have > an x86 cpu? Just to make sure... From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 01 05:06:33 2024 Received: (at 70796) by debbugs.gnu.org; 1 Jun 2024 09:06:33 +0000 Received: from localhost ([127.0.0.1]:55739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDKh7-0004l8-7w for submit@debbugs.gnu.org; Sat, 01 Jun 2024 05:06:33 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:48619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDKh4-0004ks-Mh for 70796@debbugs.gnu.org; Sat, 01 Jun 2024 05:06:31 -0400 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-57a1fe639a5so2748474a12.1 for <70796@debbugs.gnu.org>; Sat, 01 Jun 2024 02:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717232713; x=1717837513; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0N4z0kh5gBtYrFGFkzUL77Ev2aucQe3ERmjv5KyYRKU=; b=bKFFlZtRm2ujfDhc+Wmii/S52Gz6g4SHw2dRgVd1NZc47roFe3zWakI2/iBGBZ21RK ALznMYktfSIgzhTUDFdn+M1UfbtG/w+BE8T3eayOzSXcyk8HWjpdlPtgiQ9UP2ye0c2A V83bMpa0hlV00oW9rETIpEML1A1eIPUdDe9dKAEACsfnO/mE+/w0V3ycqLduPbRozOAB lTFum0xph5SZfjAtb5paLvjYExEIkd/UurKs1CTJvnYUPIZ4K9TRDQqpHQERw1rXfjNt poJ9Y2FI+c3YKKwPLxQYbv+h8ATEZMdW1quVZN+CIvPTe850m2wQHl1hNR/cy1/95ufH qrNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717232713; x=1717837513; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0N4z0kh5gBtYrFGFkzUL77Ev2aucQe3ERmjv5KyYRKU=; b=RX0WbHwPdS6np6VMwe9VfHvS6jY8IcYJ/5y/5DFNLeyYEJg1APZ7A9P/mD70IdWN6N y0h3/+Og3sYNDwV3Mu1DslWEELhFxJYltozkRyhAK/y0hUmC/n/0hwp2Qma2CFUGnHH8 2UmJmZyS83hQHNi8yu41B06aBMzWFFFU7QDRmffsea8GldwAkJHtFIuIrQ8BSyvLQq5s ZOn1CJ4QFRQLr2Rl+Kcd2HmFc3C7V+fggJm6mvgCnZ06KuNjEhaIBxxZn13Wgpy3yjwI GJd+W+j1Xwb6y9MR0k8+GLBPkOgWMw6oy6HVZhkdJgm1m7BgqScrAWX7+QCZnMUZkhvI Xgnw== X-Forwarded-Encrypted: i=1; AJvYcCUrM6clvfak/58MPNm9AC4amt2wqh+J65YP3/aVPzlLTmKV+DH+/WReZ5sFnTIOcAliv/86BtIIEVzjI/LUQcSX4I0VAXg= X-Gm-Message-State: AOJu0Yzutd0kAJwKheWOeCwXcGcXqzNsqYyR42jlyiKKZ+vXbFwQofu3 V8krOegys/VJw+ktIYedxuMvVnXzvdhGOIYQ1RlS9zpJJnlUGek1 X-Google-Smtp-Source: AGHT+IHyS3knlUBqPEm4OinmksIFRuDPi+kUTXNQEg5mjjcxLFknYckVW5raPXAuoT3H2cNkAPCP3g== X-Received: by 2002:a17:906:6082:b0:a67:2c7:f71 with SMTP id a640c23a62f3a-a6820be9364mr277724866b.45.1717232713018; Sat, 01 Jun 2024 02:05:13 -0700 (PDT) Received: from pro2.fritz.box (pd9e36cc8.dip0.t-ipconnect.de. [217.227.108.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6831a91b36sm157159966b.167.2024.06.01.02.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 02:05:12 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: "Tassilo Horn" Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Tassilo Horn's message of "Sat, 25 May 2024 10:17:03 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> Date: Sat, 01 Jun 2024 11:05:10 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , Ihor Radchenko , 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Tassilo Horn" writes: > Yes, right, x86 on GNU/Linux. > > Am Sa, 25. Mai 2024, um 09:58, schrieb Gerd M=C3=B6llmann: >> Tassilo Horn writes: >> >>>>> FWIW, I think goto-address-mode (buttonizing URLs and email addresses) >>>>> will probably have the same effect, at least the code looks pretty >>>>> similar. Can you confirm? >>>> >>>> Yes, goto-address-mode has the same effect. >>> >>> Alright. Then you can probably even simplify the issue with >>> >>> (defun i-do-nothing (start end) nil) >>> >>> and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, >>> right? >> >> Yes, same problem. In a native build with current HEAD, >> 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3. >> >> As I mentioned, no problem without native compilation. I guess you have >> an x86 cpu? Just to make sure... Another data point: when building with native-comp-speed 0, the problem is also gone. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 15 03:54:37 2024 Received: (at 70796) by debbugs.gnu.org; 15 Jun 2024 07:54:37 +0000 Received: from localhost ([127.0.0.1]:51493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIOFB-0002u2-3h for submit@debbugs.gnu.org; Sat, 15 Jun 2024 03:54:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIOF8-0002tZ-Hl for 70796@debbugs.gnu.org; Sat, 15 Jun 2024 03:54:35 -0400 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 1sIOF2-0007OB-0V; Sat, 15 Jun 2024 03:54:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=vMxxkzY59Ze+vwB6yMf040olgr17r38aPoT14Y/AqRk=; b=Pbpp8DQyvEQmoE7WFZuW ATH3F99s233++Lqvlc2MUZjNrl/XaekxgQwcIdv40pS25lN0j9zU/rsCIEuOracAs0rHMF7AmR1DJ XEtuInHzuJQt4j91al4n2V3b/YrQ3lEnifgVGsQUCEQpVTjfMF+2F4BXkrEAcy3dsT+cCZEn6jVpS pJ8cSmzehrCqzp6FeFKuFi0NhFSUa2RShy5R12ccP+BnCHS3hb6AmGg2BeB2doRRvGz5jkhiw0Z5D O+lXrt6+huUKdM9X21V3Y+iTMDO+hSFt2cKK89CJWi3v3zpLve3Ntl6afzYDwWuAv1u7vY0t0hcj8 1k+k8/GFUM/tCQ==; Date: Sat, 15 Jun 2024 10:54:24 +0300 Message-Id: <865xuawsi7.fsf@gnu.org> From: Eli Zaretskii To: tsdh@gnu.org, Gerd =?utf-8?Q?M=C3=B6llmann?= In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Sat, 01 Jun 2024 11:05:10 +0200) Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Can we make some further progress here? > From: Gerd Möllmann > Cc: Eli Zaretskii , 70796@debbugs.gnu.org, Ihor Radchenko > > Date: Sat, 01 Jun 2024 11:05:10 +0200 > > "Tassilo Horn" writes: > > > Yes, right, x86 on GNU/Linux. > > > > Am Sa, 25. Mai 2024, um 09:58, schrieb Gerd Möllmann: > >> Tassilo Horn writes: > >> > >>>>> FWIW, I think goto-address-mode (buttonizing URLs and email addresses) > >>>>> will probably have the same effect, at least the code looks pretty > >>>>> similar. Can you confirm? > >>>> > >>>> Yes, goto-address-mode has the same effect. > >>> > >>> Alright. Then you can probably even simplify the issue with > >>> > >>> (defun i-do-nothing (start end) nil) > >>> > >>> and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, > >>> right? > >> > >> Yes, same problem. In a native build with current HEAD, > >> 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3. > >> > >> As I mentioned, no problem without native compilation. I guess you have > >> an x86 cpu? Just to make sure... > > Another data point: when building with native-comp-speed 0, the > problem is also gone. > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 15 04:08:53 2024 Received: (at 70796) by debbugs.gnu.org; 15 Jun 2024 08:08:54 +0000 Received: from localhost ([127.0.0.1]:52517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIOSz-0003cz-40 for submit@debbugs.gnu.org; Sat, 15 Jun 2024 04:08:53 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:50405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIOSx-0003cb-0Z for 70796@debbugs.gnu.org; Sat, 15 Jun 2024 04:08:52 -0400 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a6efae34c83so374417966b.0 for <70796@debbugs.gnu.org>; Sat, 15 Jun 2024 01:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718438864; x=1719043664; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ohvZPqYcTElA+vcyMwS/gcBGAKASxljJl/+IR0j/5gQ=; b=VSqHNHWpsBH4S7lT74cCNOFF2UdF+224ZC7ACEXIOU/AS+TxfgktRz3zG6fxheVdZq 2QjZ0pQEdZtp65iol8Zj7MhiawSLiKjPzjdnFVtNjBYpfmuiYcsM7O96drw7bEKYCcEa YuThFRL9I/fsjn1zwP4H4mNgA5ZaVLY347ILVWjsf/mGcmkTqxkdSMuUtA6scHL2xWl1 wFWCQR86nr4RrMt3RZ9roPOjwzb2cIvfpGyPxFAdjUUur1vUhdc064momX+IQ4vmGYk4 27oz3gTLZdtn7Jh4FG9rojtRPvyYYAdDOJqH7rqZOo6MWjJmKPO2WJgYuZayBxa0A9Kb ZNQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718438864; x=1719043664; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ohvZPqYcTElA+vcyMwS/gcBGAKASxljJl/+IR0j/5gQ=; b=YHrzO+9yVLSPFhcc598vkKuTcGrgzDKc5AWqKmn6nLjGGGup2xiuo9Fih1umUZb0tb Bvmh9S0/phqvrjpyx/s1LLy4dT7DXL2KHDnOTwJWVxJWtDiW5ejguQPKq9xQBDMCnwJc sVboOKdeSzS5db7Fxm+HUm9iyvwpRdCXX1Rck6D60K87eseTQl7IUNg6hj4dRvWu3iQg N2pbKksIGu6t/ls2fQBryvD2Gw3xKD5M8nT61BykFpVeFRxNHtzwm9erkpitxOvA+SjV 2LVAVjmHLsITba2sBZv0z697TZF46nnobE5k7P8+GtVDSM42DAZbpxZHwMlz9OWBxOQ0 rdlg== X-Forwarded-Encrypted: i=1; AJvYcCWpvtG3R4eoH3p2QAqFdNEK2ONm1CC6XT6tMr9eE1ywzTPuE0vWItqxT5cLDyYbui9KvbbSJf56Ab+2RE7wGYcnE1NRNGI= X-Gm-Message-State: AOJu0YwaJZ1XiZ7pz9RbwJyAdKaJHqA78Aa6RKIsN5LqougO/c9VxCa3 3/1hoZVNvuo8Qbup1bLPZL0o0xaWg3EpmG5h3zIi9g4XniAO7X/B X-Google-Smtp-Source: AGHT+IHddwfl6uTS+1DsTc0warI72GJIDa3QEx0cueON+eidJ4S0tyjfRpZDyj7Cd80cnhU23OEMSQ== X-Received: by 2002:a17:907:6d08:b0:a66:c338:65cc with SMTP id a640c23a62f3a-a6f60d2991bmr382614666b.19.1718438864214; Sat, 15 Jun 2024 01:07:44 -0700 (PDT) Received: from pro2.fritz.box (pd9e36be1.dip0.t-ipconnect.de. [217.227.107.225]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f5f1c8d6fsm211643966b.0.2024.06.15.01.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 01:07:43 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <865xuawsi7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jun 2024 10:54:24 +0300") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> <865xuawsi7.fsf@gnu.org> Date: Sat, 15 Jun 2024 10:07:43 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: 70796@debbugs.gnu.org, yantar92@posteo.net, tsdh@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > Ping! Can we make some further progress here? > >> From: Gerd M=C3=B6llmann >> Cc: Eli Zaretskii , 70796@debbugs.gnu.org, Ihor Radchenko >> >> Date: Sat, 01 Jun 2024 11:05:10 +0200 >>=20 >> "Tassilo Horn" writes: >>=20 >> > Yes, right, x86 on GNU/Linux. >> > >> > Am Sa, 25. Mai 2024, um 09:58, schrieb Gerd M=C3=B6llmann: >> >> Tassilo Horn writes: >> >> >> >>>>> FWIW, I think goto-address-mode (buttonizing URLs and email addres= ses) >> >>>>> will probably have the same effect, at least the code looks pretty >> >>>>> similar. Can you confirm? >> >>>> >> >>>> Yes, goto-address-mode has the same effect. >> >>> >> >>> Alright. Then you can probably even simplify the issue with >> >>> >> >>> (defun i-do-nothing (start end) nil) >> >>> >> >>> and then M-: (jit-lock-register #'i-do-nothing) RET in some buffer, >> >>> right? >> >> >> >> Yes, same problem. In a native build with current HEAD, >> >> 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3. >> >> >> >> As I mentioned, no problem without native compilation. I guess you ha= ve >> >> an x86 cpu? Just to make sure... >>=20 >> Another data point: when building with native-comp-speed 0, the >> problem is also gone. >>=20 No progress in this matter from my side. I don't know what's going on. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 05:45:53 2024 Received: (at 70796) by debbugs.gnu.org; 16 Jun 2024 09:45:54 +0000 Received: from localhost ([127.0.0.1]:41547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sImSP-0002SB-GD for submit@debbugs.gnu.org; Sun, 16 Jun 2024 05:45:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sImSM-0002Rp-QE for 70796@debbugs.gnu.org; Sun, 16 Jun 2024 05:45:51 -0400 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 1sImSF-00051P-0G; Sun, 16 Jun 2024 05:45:43 -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=y6L442Q/6crHVAAsiAKD4AcUngHnAYiJXu5mxVH9nz4=; b=nt/aalciAtdXchVlnaXO ZAGAISrRZf7S2qEBEC1rGbZDiHykoABKEgRQqvjVXJDHi+R3JQSd3PVNsM4zBNYKqU2gj4uXj5/cM M7h4Fg1MhiihyV5fS1adhU5Icx6QILMw+DQGMHCMu4qaEnr62Jor8vt8BcTCf/lWxCUK56w3Y6Us6 UXoLKoGj1UF5+Ik7OHpTyBxckkwjAURObUxINV7lEz+6kQpcg4OJPavxEJR7Ts0aV/DhJub3g5Imp lbBMnhJ/UTa18HFyjrWF3RftJi7jLyHHWtqRIVgES1O3ydwAxHm2WVNEfXjeRwYm2EkBqbTVXg+eb WKDxtPCn1XxszA==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvfedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dukeevteeuvdetteejveetieejhedtteefffdvkeeikeevffdttefgveeilefhhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 15 Jun 2024 10:07:43 +0200") References: <86ttjbb1pu.fsf@gnu.org> <86msp3avh1.fsf@gnu.org> <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> <865xuawsi7.fsf@gnu.org> Date: Sun, 16 Jun 2024 11:45:16 +0200 Message-ID: <874j9t5ihf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > No progress in this matter from my side. I don't know what's going on. Same here. The issue went from "bug-reference-mode leading to constant GC-ing" to "any (additional) function (including a no-op function) in jit-lock-functions leads to constant GC-ing on MacOS but only with native compilation and only when native-comp-speed > 0." I feel responsible for bug-reference-mode but Mac-specific issues during redisplay that only happen with native-compilation are out of by expertise, sorry. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 06:44:46 2024 Received: (at 70796) by debbugs.gnu.org; 16 Jun 2024 10:44:46 +0000 Received: from localhost ([127.0.0.1]:45531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sInNN-00051K-Ms for submit@debbugs.gnu.org; Sun, 16 Jun 2024 06:44:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sInNL-00050y-2c for 70796@debbugs.gnu.org; Sun, 16 Jun 2024 06:44:43 -0400 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 1sInNE-0005S2-BM; Sun, 16 Jun 2024 06:44:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2yJlZv5QMhk8hoPMRiuCrJopyOi/2z0aeSxSwKWxAKE=; b=UYDk18pxMFiKLrDAw1ae LJwK2R6F/OUEzfl1CMEWupFOp97zbmlK7q1OkOXFRqjebO6ofqWQBSX6YtGlmeOhE8Ru9Y2SkEJ4f UhTv3YIZ0zsIfuE8v+S0clUkrSn/jKsXhCffMw9xxRsAWteuItIBRAT50anooW+Fm0ZdPhMXrQMMY oca5i+XjqOiOJRH+0dYrSacCrltOOApP1pW55f9axV+lrgw23JiZuyBrvgLedjKy6sT4L1UqYLnYN 5504mF4dZZAhtVneB5DEhyCzEbWz351X2tsxbYaBNEilWYRFtJFXIpVtNqIQ/I2ybjhQMAs/CttOu 2k9GsqaRWnteNA==; Date: Sun, 16 Jun 2024 13:44:26 +0300 Message-Id: <86jziprwtx.fsf@gnu.org> From: Eli Zaretskii To: Tassilo Horn , Andrea Corallo In-Reply-To: <874j9t5ihf.fsf@gnu.org> (message from Tassilo Horn on Sun, 16 Jun 2024 11:45:16 +0200) Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing References: <86ttjbb1pu.fsf@gnu.org> <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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: gerd.moellmann@gmail.com, 70796@debbugs.gnu.org, yantar92@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tassilo Horn > Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@posteo.net > Date: Sun, 16 Jun 2024 11:45:16 +0200 > > Gerd Möllmann writes: > > > No progress in this matter from my side. I don't know what's going on. > > Same here. The issue went from "bug-reference-mode leading to constant > GC-ing" to "any (additional) function (including a no-op function) in > jit-lock-functions leads to constant GC-ing on MacOS but only with > native compilation and only when native-comp-speed > 0." I feel > responsible for bug-reference-mode but Mac-specific issues during > redisplay that only happen with native-compilation are out of by > expertise, sorry. Andrea, could you perhaps look into this? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 03:34:30 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 07:34:30 +0000 Received: from localhost ([127.0.0.1]:59459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6so-0001Ct-DD for submit@debbugs.gnu.org; Mon, 17 Jun 2024 03:34:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6sm-0001Ch-ES for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 03:34:29 -0400 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 1sJ6sf-0005wj-96; Mon, 17 Jun 2024 03:34:21 -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=xMedOrj3hKA+zCgW4Ce+m0GiiDp8npyCIHBt3mfhwCQ=; b=JZfmzF4POnY+t4awpDJc jvieemvCKQ64d7EZiZnWDLQwbp8JBAToil5sczbIP9TP8uqwh9Tnjy2DfK3lpZryIRiCR+6Fmet1N vfab7qulQFsLarm/6/oF3Qzhrxf6RnJy7Uss0XiZv8Uq63yfGmjIC9biPJlXsKHrBj/MrSetNawas yqVyPKNlTOjjWaFxpB/cl4tXJr4+/7uwBdxi3VXySsJxSVVrH9t2jQEm3eE676P4UO9fqmvpV83R8 1/h4r06SOgtn4ztIrL6ap7SvGkpNWwzCinR65dUGcvOcL9NoUaIaovANNZd8doQNYB72QLdBPrr1G ZS1HjO3EslurdA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ6sd-00035L-Oe; Mon, 17 Jun 2024 03:34:19 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <86jziprwtx.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Jun 2024 13:44:26 +0300") References: <86ttjbb1pu.fsf@gnu.org> <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> Date: Mon, 17 Jun 2024 03:34:19 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: gerd.moellmann@gmail.com, 70796@debbugs.gnu.org, yantar92@posteo.net, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> From: Tassilo Horn >> Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@post= eo.net >> Date: Sun, 16 Jun 2024 11:45:16 +0200 >>=20 >> Gerd M=C3=B6llmann writes: >>=20 >> > No progress in this matter from my side. I don't know what's going on. >>=20 >> Same here. The issue went from "bug-reference-mode leading to constant >> GC-ing" to "any (additional) function (including a no-op function) in >> jit-lock-functions leads to constant GC-ing on MacOS but only with >> native compilation and only when native-comp-speed > 0." I feel >> responsible for bug-reference-mode but Mac-specific issues during >> redisplay that only happen with native-compilation are out of by >> expertise, sorry. > > Andrea, could you perhaps look into this? I'll be happy to look into it but I don't use MacOS and AFAIR Tassilo mentioned it's not reproducible on x86 (GNU/Linux?). I'll give it try here as well, but also to me the reproducer itself is not 100% clear. Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 04:08:12 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 08:08:12 +0000 Received: from localhost ([127.0.0.1]:59488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7PP-0002I0-UJ for submit@debbugs.gnu.org; Mon, 17 Jun 2024 04:08:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7PN-0002Hn-Rv for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 04:08:10 -0400 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 1sJ7PE-0003FA-78; Mon, 17 Jun 2024 04:08:00 -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=vxmwlhU/AL+1rg+fXhw/khej5Labf6UsDmC65RIzRTo=; b=GmtfFcCiU9ivNkyQcRkT SRbn+DqfZ8vp6AhFWcI5vX3lq6O4R8eJEVnCNwNgbs9CdC2xempnaECh12U0CFeUNBJZuLGVsFNy8 sL6d9xMQboWHtwvHo+dSuFtsNf8A+1xXMj4IlBG3IPmvMunC7ukR3W92G5FOsqRUPyyJm3UKOMHpe 5NzY6z/xZ7DMJrQK7H7BUeOyyno6l6xYcSKgjQeKJefyFPmESp7pPJb4FgYYzsiae1lbmb889i5JL gPbapEJemZ+nLzdoqdvcXbYoWUuz3tzwZ0ecaI+8mmIopFy2l52AjlVTm0Oz5LZCMNH2LfWLaTOEB +JVMKRn5909RJw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ7P9-0006ym-Al; Mon, 17 Jun 2024 04:07:56 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 03:34:19 -0400") References: <86ttjbb1pu.fsf@gnu.org> <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> Date: Mon, 17 Jun 2024 04:07:55 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: gerd.moellmann@gmail.com, 70796@debbugs.gnu.org, yantar92@posteo.net, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Tassilo Horn >>> Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@pos= teo.net >>> Date: Sun, 16 Jun 2024 11:45:16 +0200 >>>=20 >>> Gerd M=C3=B6llmann writes: >>>=20 >>> > No progress in this matter from my side. I don't know what's going on. >>>=20 >>> Same here. The issue went from "bug-reference-mode leading to constant >>> GC-ing" to "any (additional) function (including a no-op function) in >>> jit-lock-functions leads to constant GC-ing on MacOS but only with >>> native compilation and only when native-comp-speed > 0." I feel >>> responsible for bug-reference-mode but Mac-specific issues during >>> redisplay that only happen with native-compilation are out of by >>> expertise, sorry. >> >> Andrea, could you perhaps look into this? > > I'll be happy to look into it but I don't use MacOS and AFAIR Tassilo > mentioned it's not reproducible on x86 (GNU/Linux?). > > I'll give it try here as well, but also to me the reproducer itself is > not 100% clear. > > Andrea 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=3Dno 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/admi= n/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? Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 04:19:51 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 08:19:51 +0000 Received: from localhost ([127.0.0.1]:59497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7ag-0002bL-SG for submit@debbugs.gnu.org; Mon, 17 Jun 2024 04:19:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7ae-0002b7-0p for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 04:19:49 -0400 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 1sJ7aW-0005BG-In; Mon, 17 Jun 2024 04:19:40 -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=3SRMB8x5ALcr3FxAl7Oxg5eDNYu94sfbQf8aYHu3NB8=; b=Yt3WbqFIBBzFRmzILZCt B1jJzRSQnm4esqRIXpQN7CG0wz0tSeeVc+oNhBJtukyd7CVv/+J461GGiDgWSy6O2FCYlp7ey7Q5m NcHNrPiXxrvI8yEYug1C5vqKtERUnKbuOtdEHlodNirRa44Jpl7+cWbdncPzp+nqLReDqeH1aEPYh xd6mmmFsSxjyOvoZMO7TDZihpIVwzcRt4rp/zOjO2AsclFbY0xGNGsqbNMNqu2cZPd1aAIMbUxU+r 26xzydELJZCSrrcXpASzgmwp1Idzcwa/KsYenvPEmQkyzZ3KY026hZ0rfjsV0UjK/2FFCTWKLF39m JGIohZijrXo4VQ==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvhedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnheple ekhfejudefveekheehueeigeeivdfhffegkeffheeuhffgfeekfeetleehfeffnecuffho mhgrihhnpehighgtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihht hidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrsh htmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn To: Andrea Corallo Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 04:07:55 -0400") 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> Date: Mon, 17 Jun 2024 10:19:31 +0200 Message-ID: <87tths3rsc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: gerd.moellmann@gmail.com, Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 04:22:43 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 08:22:43 +0000 Received: from localhost ([127.0.0.1]:59501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7dT-0002gE-D3 for submit@debbugs.gnu.org; Mon, 17 Jun 2024 04:22:43 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:52535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7dQ-0002fz-6u for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 04:22:41 -0400 Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2ec002caf3eso68167451fa.1 for <70796@debbugs.gnu.org>; Mon, 17 Jun 2024 01:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718612492; x=1719217292; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bdBCjRXy+iaT/ZE0omH7qShaKMTboLUG0nLVfWP7Ry0=; b=ODQ0+lL+0ZrK51w0HdUehUgU4KhqnkcSPsXtHW50DXST0SR8f7Um+CHsoD00ieLERd FgXMYIoNcNnUeD6COm8gorol+oydio+re80h0uZK8JyJ832M3QxnzNbJxTsB9ROli61q jDs2seX3vfImgojxxvvRhvNDyJcn/TvZ1CUdJyI30avRh4n1wrV+sCKZix4wCT6NegeO uHHiUnPgdGMLUKD7CsHGou/9YpokTHQcSEjA8pGej4G+AYA6AD6nmMoaFWEFK6O/7rjp Ikaih6zcuy1nbLb5skHpS0YvkZ9EKMzGIF13CEIXnjDN2XeJVrbSrY8e07H1ygsQWBv3 wz3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718612492; x=1719217292; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bdBCjRXy+iaT/ZE0omH7qShaKMTboLUG0nLVfWP7Ry0=; b=J4CX6ocSK+Tg72Iu3uPfHcGJ7Y9KQqRr1OpXr/pFJOMBXonviFG8Kf1C3Kvx9dJY0j sqLQNc8zt0QP+rZNTdie2DQv6YOvWFIk0zZtkHlFAtvR5Ga1lLVg1vuXM0IlhAZA3IOW QhGNFp/NtKBBDO0o3QeWnAl0YuKeEHwYuzQSntZZTkFaJvznldp6tK7MRxhNrbHN948X 9Ssoc26Yy/3mjt27w4le6B4/bAww+jHHPMQshQSgcUNAj2HYa66V5cZneVGUL5aCLVTj 98b7jNPohWvVVLZetcY8hGyEw6QN0TigY+okKxlxtL07rGvqjshH/iaSeC4bVkOJ3D7w QNkg== X-Forwarded-Encrypted: i=1; AJvYcCUF/R7rr3Sbk9WwxCV1wNI2LW7yBVikGBhD9MPyZnUwC7apPplb15PA42aiHDUyH7ygqRv8Y7vZPtNP83p8HaqOpKiJcvk= X-Gm-Message-State: AOJu0Yz3Pc4hxglrYpPzfypktdW31rbqewbo+E7JbLS/y4QAsEhROhU+ c/YVKI+0+8Xazq0wkFZa0ilGk5bDhZ9xUIpLvmgp5UaGke1pSCsU X-Google-Smtp-Source: AGHT+IEe1Xg5xPhYwveqDdXI63WhgBAWx3FgauyIUTcoyzxaGLPnX5B6wOGRCkIR0r3riOaqxVViFQ== X-Received: by 2002:a2e:7205:0:b0:2ea:e2d2:6231 with SMTP id 38308e7fff4ca-2ec0e5bb9c5mr77844161fa.33.1718612491950; Mon, 17 Jun 2024 01:21:31 -0700 (PDT) Received: from pro2.fritz.box (pd9e36d9b.dip0.t-ipconnect.de. [217.227.109.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db6dfesm488101666b.87.2024.06.17.01.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 01:21:31 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Andrea Corallo Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 04:07:55 -0400") 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> Date: Mon, 17 Jun 2024 10:21:30 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andrea Corallo writes: > Andrea Corallo writes: > >> Eli Zaretskii writes: >> >>>> From: Tassilo Horn >>>> Cc: Eli Zaretskii , 70796@debbugs.gnu.org, yantar92@po= steo.net >>>> Date: Sun, 16 Jun 2024 11:45:16 +0200 >>>>=20 >>>> Gerd M=C3=B6llmann writes: >>>>=20 >>>> > No progress in this matter from my side. I don't know what's going o= n. >>>>=20 >>>> Same here. The issue went from "bug-reference-mode leading to constant >>>> GC-ing" to "any (additional) function (including a no-op function) in >>>> jit-lock-functions leads to constant GC-ing on MacOS but only with >>>> native compilation and only when native-comp-speed > 0." I feel >>>> responsible for bug-reference-mode but Mac-specific issues during >>>> redisplay that only happen with native-compilation are out of by >>>> expertise, sorry. >>> >>> Andrea, could you perhaps look into this? >> >> I'll be happy to look into it but I don't use MacOS and AFAIR Tassilo >> mentioned it's not reproducible on x86 (GNU/Linux?). >> >> I'll give it try here as well, but also to me the reproducer itself is >> not 100% clear. >> >> Andrea > > 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=3Dno = 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/ad= min/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? Almost. After loading the Org file, please M-x goto-address-mode RET, or M-x bug-reference-mode RET. In fact, registering anything with jit-lock-register seems to have the same effect. Tassilo posted a do-nothing example. For me that is, because no one not on macOS/arm64 seems to see that. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 04:30:57 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 08:30:57 +0000 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 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 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==; 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 From: Andrea Corallo To: Tassilo Horn Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: <87tths3rsc.fsf@gnu.org> (Tassilo Horn's message of "Mon, 17 Jun 2024 10:19:31 +0200") 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> Date: Mon, 17 Jun 2024 04:30:47 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: gerd.moellmann@gmail.com, Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 05:03:45 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 09:03:45 +0000 Received: from localhost ([127.0.0.1]:59551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ8HB-0003kc-6d for submit@debbugs.gnu.org; Mon, 17 Jun 2024 05:03:45 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:59518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ8H8-0003kH-3M for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 05:03:43 -0400 Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a6f04afcce1so525713366b.2 for <70796@debbugs.gnu.org>; Mon, 17 Jun 2024 02:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718614954; x=1719219754; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rHq4AR+Lel1CL/s/p69rt4rrskBKrMTLMjn+w4amBWg=; b=k8Cf3HjuYwBte7sjynF33SWu2foA7u1bR6PUSPUh6+STDsJSCI/rR9ZJFNqSB3v3+k bLa2SwhVMWwRSCXRkXBUZqPj7/cyA0Zo2ZTTb3qGdgpFh0om2sbMiTpJbrhmyP9t11Io uv0GGSdyghT4UwexoJE31ztXlh2jrK0deeKejdDr+kIsyQ0svb9hYu8g2cZaMvXJL7ff 1K6x1u0rJdDFVFPGIKkqVphgTqXy41HAig9ENLRztsgwI9BDI/u4GAUu8HeZkzd80IQ+ qDsOabL01ap6Pb9wYlEQdwCgQ1YYz4Lk39sb0AA47XPQNGZSoGs4srhpdE55Kkq6Ydeh RH7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718614954; x=1719219754; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rHq4AR+Lel1CL/s/p69rt4rrskBKrMTLMjn+w4amBWg=; b=M4ELx/fQ3lGpgdOcrs0zJjXcQsU72tJd0mGIOLkRnhZ0AROF/aaSO5OyypEKbYodr+ MbVGnSbuePQGt/lBQTs0jZSl2BIQuP8L8nmtfvXhKCv3T40/jdr6A4N1a81DJGR3Eqfl jM/YFa1/gJJcopLCCqsYbIub/0LvkgQYWEWlAzeYMKkSanhXLyJoihT7nXj4aybRL6BM jLUCZszTVOjczvTFIzSPjY6UKu3Vu1xA9UCGdPWu4KcuaHKkVdgK605tmggEvCLIA3i0 QmYv68Ns0qi3XUdjYuzg7v8YBM9g84bF/GQbx9aatZoqfWuna/kON4Nej5sj+q7vqvMH FKkA== X-Forwarded-Encrypted: i=1; AJvYcCU6+fi/S2P1zYExEeeXHzAUMJTfrxE8pUkSqd/HvD/NLvDy6Y7nJEbDnDFlU1Hdn0n11yewcybsbWe0ho6QFIIemQGFmPk= X-Gm-Message-State: AOJu0YzclXJCxXDHxJjn8DpbUbgEqJqq5zKZUAo6sa9Snw5Hqnwl/Gz/ 2nt72pvvomc+9kpEYqcl99csjiiJ49Wz28m4AT4/uImSGaNL91/m X-Google-Smtp-Source: AGHT+IGECamv0zpfbcCndFRX1qqFI3sTUkjnFdTWzLRQ8mEWPtdOAnx8a27VVeD2KWmqWpF346k2Qg== X-Received: by 2002:a17:906:d1cf:b0:a6f:4ba4:c389 with SMTP id a640c23a62f3a-a6f60d13b0fmr692149866b.16.1718614953945; Mon, 17 Jun 2024 02:02:33 -0700 (PDT) Received: from pro2.fritz.box (pd9e36d9b.dip0.t-ipconnect.de. [217.227.109.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db5c27sm495768266b.64.2024.06.17.02.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 02:02:33 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Andrea Corallo Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 04:30:47 -0400") 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> Date: Mon, 17 Jun 2024 11:02:31 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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=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. I'm still suspecting either macOS or libgccjit 14 on arm64, BTW, or a combination. But I guess I already mentioned that :-). From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 05:31:05 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 09:31:05 +0000 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 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 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==; 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 From: Andrea Corallo To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 17 Jun 2024 11:02:31 +0200") 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> Date: Mon, 17 Jun 2024 05:30:51 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 05:54:12 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 09:54:12 +0000 Received: from localhost ([127.0.0.1]:59591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ93z-00051H-Va for submit@debbugs.gnu.org; Mon, 17 Jun 2024 05:54:12 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:61897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ93x-000512-UU for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 05:54:10 -0400 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a6f0c3d0792so480994266b.3 for <70796@debbugs.gnu.org>; Mon, 17 Jun 2024 02:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718617982; x=1719222782; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yeDJEtwPjT9/243zJoQGaGnuHqZCUulZlVNQtKoAIbY=; b=VINoykPNcba4jwhSzxP6RA4c1uQ8+hFOIXCngDCUFQ11EbfcejdN8cMdj0OzlYjqnA i8J01/nRfZWlSRYEjLcpRdIzXbSkwvYjNHI6josX/RJAor6r7AZG27Pu7cSvHUF8ttNs O3Go6hjdB0NiLbXeMELfzCoN2h0P0dYvYJaDDWZtb5D1n7vV+xUywR7c+uSERfxWeVKn zonBx+JteOO8jT45QgVXjM7wZfXDdqXojA6FqJQHZqPilwQHkZo3N2wSOj2zMzpAzunJ tRjQdgdSFVTosWZNM168nNBbtfXHh1gZpJeF4mti6yXDe31ZIwa9zNwd/TvbxlDbR5bP tXuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718617982; x=1719222782; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yeDJEtwPjT9/243zJoQGaGnuHqZCUulZlVNQtKoAIbY=; b=pAQPMPJvU/8haxDX3PBB6wKGsuTvVOpcY3FtgLhpJgBV6LklK5VtTgU9bkpjsr6a4N 8MsE0hn9GmTPIbcIpDfA78tygVevSyjJrpEBehdHUr4alqWCRJfoCERRQxgsRfn+AEWN QsH047cYTTnUA+TnRCMVBxQHS26j/mCGG8UHCSNQ+G7oZ5PLvvs1Xdeakb6owixymHnn KwXwGJQz3rDIC7d9aQeUizQ0u+ES+We4xVejeDTTI7myDRdkdgfyapp7w7/MSJdITsg9 MYHhUxmygRsiN0kxd2Iz/X0R3+SLbkVt0ZhCzayoOG/1uDHH5IaKbFmb2xe//avwz5zU EN9g== X-Forwarded-Encrypted: i=1; AJvYcCXdMzvgGBW4fK1nlnMVCIzZ3GcYmmmETQhG2hN9/mgItGgJGF4jp9G+3uFB8CYOlXk/sHHIeJGeM+v9+3wG+YLpAUC0xmI= X-Gm-Message-State: AOJu0Yzxddgak0oeQiAwG+SXNU2OK/n2BepUj6z/mZn/HPLHZfOUixl1 D8dMsNz41DBsfcks1SouWoSmjWUhjmxknmOanx137+okL0vAkMKdHyCoDw== X-Google-Smtp-Source: AGHT+IEl776PhuPN0v3IXmciyXSpUAPrfG2P1H9dZ8I1Myci7Uy9CsxAFLMfhvAXAiBLYY/zscQVmw== X-Received: by 2002:a17:906:2695:b0:a6f:5698:ab57 with SMTP id a640c23a62f3a-a6f60cf3a41mr640348666b.3.1718617981812; Mon, 17 Jun 2024 02:53:01 -0700 (PDT) Received: from pro2.fritz.box (pd9e36d9b.dip0.t-ipconnect.de. [217.227.109.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56da40dasm498298366b.44.2024.06.17.02.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 02:53:01 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Andrea Corallo Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 05:30:51 -0400") 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> Date: Mon, 17 Jun 2024 11:53:00 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andrea Corallo writes: > 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= =3Dno >>>>> 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 X8= 6-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. Thanks. I'm currently waiting for a new GCC/libgccjit release which I think should happen relatively soon. I'll report back when that happens. Much more I cannot do either ATM, I'm afraid. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 06:11:03 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 10:11:03 +0000 Received: from localhost ([127.0.0.1]:59606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9KI-0005Tm-6n for submit@debbugs.gnu.org; Mon, 17 Jun 2024 06:11:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9KG-0005T7-L2 for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 06:11:01 -0400 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 1sJ9K9-0006Gq-9m; Mon, 17 Jun 2024 06:10:53 -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=KlNFuaCGDl325Hu33ZvXmPuLx7JUtLvSGGcxy+/HbgE=; b=OxJ33cIJ0d2zhT9q4hzN TTjXYMQEgEO8canQaBh3hhfC/ZKsw+TwikK8gYri7DoAFrmmxaetIWNGV9eygVr2A+newYGWAYZ1L LhsKLedGlLbAt65AzMNQvCUudBdgA5NOzb4B7yvlTLYi6wGgLx+Rvf2xj+WI+9IG8kzqQDpPhKp4M Uy8vIoUcswc+qBp+8PTc1qqPZmPH4gPpnVwAloSUGKOj+XUL7liJHGYekUtNVsl9yPVSAZBtwPHCl Lh3+0zpHyLc2120qAVtPwxhJwGW5w93TQmqI4M/CkNZqoedImhKv9BhRN4mwP/t0lWr7YjE8emxoQ GQoLEjZf3tWTOw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ9K8-0004gO-0i; Mon, 17 Jun 2024 06:10:52 -0400 From: Andrea Corallo To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 17 Jun 2024 11:53:00 +0200") 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> Date: Mon, 17 Jun 2024 06:10:51 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > Andrea Corallo writes: > >> 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= =3Dno >>>>>> 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 expecte= d. >>>>>> >>>>>> 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 compil= ed >>>> instance with no effect on the number of GC cycles (I'm on GNU/Linux X= 86-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. > > Thanks. I'm currently waiting for a new GCC/libgccjit release which I > think should happen relatively soon. I'll report back when that happens. > Much more I cannot do either ATM, I'm afraid. Maybe you could try my same libgccjit version, this would confirm if it's a libgccjit version specific bug or it's OS specific. In case you can build any libgccjit easily from the gcc repo following [1]. Another approach would be to add the ";; no-native-compile: t" cookie by bisection to our .el files to discover if a specific compilation unit being native compiled is causing the issue you observe. Thanks Andrea [1] From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 06:34:18 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 10:34:18 +0000 Received: from localhost ([127.0.0.1]:59692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9go-00064R-19 for submit@debbugs.gnu.org; Mon, 17 Jun 2024 06:34:18 -0400 Received: from mail-ed1-f44.google.com ([209.85.208.44]:55748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9gl-00064B-FN for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 06:34:16 -0400 Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57cce3bc8c6so2029880a12.3 for <70796@debbugs.gnu.org>; Mon, 17 Jun 2024 03:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718620387; x=1719225187; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4ph6bmCqNzaQDRWDFORzpDJyn71olonDXb9ruwttOy0=; b=XwnZe1BgBiAmQt+zPloXi6yHvd7GsSudUw6ETXiryaTrgc6TYrIfv4hj4CHlUCjsX5 YiW3D6oU72aTDPsigOeqrcDfv7r3mZzvNwEPv6ErxpTsTFBv0BdHX5CwhizlTBpT9Lsm qvqDDS//rDc3xIEzsqO5J1MOUcSxG6jY82GnQvmM4iIEhQane5suUGFS8EVGZ3J8mEhT RBH5PE7QgWbJZZHot/isqEIPwDZ0BF9a3FFRvTx7h2AprMyhftzBzwJtxmDhv6PDVRnI iazy4P18CL5Ej7eJEo9tL5E2hmyusYG2IE4apKApQFrrWiWDVcQbh7soUU6a3YrM/AWk 8Skw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718620387; x=1719225187; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4ph6bmCqNzaQDRWDFORzpDJyn71olonDXb9ruwttOy0=; b=okExAeSbHzinGV1WFruExjFph6t0wc1OHPuqEorAWIrQEm3hisCYvpEtUQ+teSkaJw SmSTarydkWC7wHdAjz/PwHBWimJ4DVkHSN9zjAOHt1TPFNj9qIYcfaUOE8tm2M7HfjRG UBN34ofJ/InW2kqqQUbLlz7d8VL+1lUAVLTwxRMp9dZ4+r9whavoAH+XxBn1j84c75Wr fIIXpi2a+Kr78vDD3OwgZFCAq1Bb3IzwwQtj2sii3ymgd82+NFkZuBEg0hDtgMfVD0On uzn15pwq/hMUS2qgca4x17SoyTa0kRZcq8nz9gQKQn66hU8GzNIt2eTOgwahyKTrNDpS WMzQ== X-Forwarded-Encrypted: i=1; AJvYcCX7DV02/6TcOmWZvonLUzeI/bPoUV5vWqroDGiwjIvzgu5vD/UH4I4ZVtgFFln02lRcZ2kyx1dok4E02Q1ZPsU0IpbEEkY= X-Gm-Message-State: AOJu0Yz0CgSLVHjTnSYAeTTxkgzqfXsUhJ/uqMltdcjcloeXH4+Jh8We MzwZZ9AnQcTPF3YVqI2ra9ueONxGjV1Dzz+0lFttqXYuBwVe8Sek X-Google-Smtp-Source: AGHT+IGS5tGMz+0t1WhemZdlSIQ5BfupSFWeMUJ7EYF7ud8kmoiaH853yoU3il54RqiDoqzI2wuRwg== X-Received: by 2002:a50:9998:0:b0:57c:f146:f078 with SMTP id 4fb4d7f45d1cf-57cf146fd76mr24079a12.8.1718620387411; Mon, 17 Jun 2024 03:33:07 -0700 (PDT) Received: from pro2.fritz.box (pd9e36d9b.dip0.t-ipconnect.de. [217.227.109.155]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb72e95d7sm6199495a12.47.2024.06.17.03.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 03:33:06 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Andrea Corallo Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 06:10:51 -0400") References: <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> Date: Mon, 17 Jun 2024 12:33:06 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andrea Corallo writes: > Maybe you could try my same libgccjit version, this would confirm if > it's a libgccjit version specific bug or it's OS specific. > > In case you can build any libgccjit easily from the gcc repo following > [1]. Homebrew libgccjit unforunately only supports a pre-built version 14, or --HEAD which so far never built successfully. My own attempts to build from GCC git also failed so far because of conflicting dependencies, and I didn't want to mess that much with my system. Also, I found GCC's use, or non-use, of branches and tags pretty confusing, and couldn't find an up-to-date description how that's intended to work. Anyway, I've given up on that. > Another approach would be to add the ";; no-native-compile: t" cookie by > bisection to our .el files to discover if a specific compilation unit > being native compiled is causing the issue you observe. I thought about something like that to at least find the place where things go astray, but - besides the fact that that would take me forever - in the end I would be in the same position that I was with igc: a thousandt lines arm64 assembly, C code that looks okay, and so on... So, won't happen, sorry :-) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 10:13:30 2024 Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 14:13:30 +0000 Received: from localhost ([127.0.0.1]:34790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJD6w-0007Cu-40 for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:13:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJD6t-0007Cg-DS for 70796@debbugs.gnu.org; Mon, 17 Jun 2024 10:13:28 -0400 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 1sJD6l-0001ez-RC; Mon, 17 Jun 2024 10:13:19 -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=8VAp7pUyCdiGiK71a5bSWbG730D4FALT2dghAHkTDJE=; b=NLf+Dv3GnNlxTz9EMX3D EiWjJ64wi2XzJ15awMQhskUxZHKNJ6L79wgAj3V7va2apzdmqWVbfK+bViN0WfsfX+oVoM6nf9W1f L0Tt50Ms57stWgYfYRISujlvcdQsWmprS065gcYjoW9j+isYwlLMtxMl+TAlaa+Ry3oKCACeZQPsU NM4BZ9DEdTKMIbLkknZ7XpZXtF0q9JHFTk+VsvCwPSpwxJz6JhAWJapaE7xJLInb15T7vFNXVS3Z0 BT5qXc0+Kj+ZSvXuwncuQAkDC3wR+V7xJd9TpCradGvIvUFNNOCpRHnpPUWkq81FLtjuqPVo1yzkr foH3LHZkbRxbFA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJD6e-0006N0-RA; Mon, 17 Jun 2024 10:13:12 -0400 From: Andrea Corallo To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 17 Jun 2024 12:33:06 +0200") References: <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> <865xuawsi7.fsf@gnu.org> <874j9t5ihf.fsf@gnu.org> <86jziprwtx.fsf@gnu.org> <87tths3rsc.fsf@gnu.org> Date: Mon, 17 Jun 2024 10:13:12 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70796 Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > Andrea Corallo writes: > >> Maybe you could try my same libgccjit version, this would confirm if >> it's a libgccjit version specific bug or it's OS specific. >> >> In case you can build any libgccjit easily from the gcc repo following >> [1]. > > Homebrew libgccjit unforunately only supports a pre-built version 14, or > --HEAD which so far never built successfully. > > My own attempts to build from GCC git also failed so far because of > conflicting dependencies, and I didn't want to mess that much with my > system. Also, I found GCC's use, or non-use, of branches and tags pretty > confusing, and couldn't find an up-to-date description how that's > intended to work. Anyway, I've given up on that. I think just everything in releases/gcc-* is supposed to be release ready, but there are also tags (ex refs/tags/releases/gcc-14.1.0). Anyway I compiled libgccjit based on current releases/gcc-14 and run on my AArch64 testbench without being able to observe the issue. >> Another approach would be to add the ";; no-native-compile: t" cookie by >> bisection to our .el files to discover if a specific compilation unit >> being native compiled is causing the issue you observe. > > I thought about something like that to at least find the place where > things go astray, but - besides the fact that that would take me forever > - in the end I would be in the same position that I was with igc: a > thousandt lines arm64 assembly, C code that looks okay, and so on... I don't think so, by bissection is typically few steps and once the CU is indentified we tipically narrow down the function. With this technique in the past we worked on non trivial bugs with success. > So, won't happen, sorry :-) No worries I'm not the one affected ;) Andrea