From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing Date: Mon, 17 Jun 2024 11:53:00 +0200 Message-ID: References: <86bk53fsq1.fsf@gnu.org> <87sey7dlq7.fsf@gnu.org> <87msoerj1b.fsf@gnu.org> <87jzjiuytt.fsf@gnu.org> <865xuawsi7.fsf@gnu.org> <874j9t5ihf.fsf@gnu.org> <86jziprwtx.fsf@gnu.org> <87tths3rsc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36168"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , yantar92@posteo.net, 70796@debbugs.gnu.org, Tassilo Horn To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 11:55:35 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJ95J-00095w-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 11:55:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJ94p-0001IY-9A; Mon, 17 Jun 2024 05:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ94m-0001IF-NQ for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:55:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJ94m-0003YJ-DD for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:55:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJ94o-00052t-2Y for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2024 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2024 09:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70796 X-GNU-PR-Package: emacs Original-Received: via spool by 70796-submit@debbugs.gnu.org id=B70796.171861805219303 (code B ref 70796); Mon, 17 Jun 2024 09:55:02 +0000 Original-Received: (at 70796) by debbugs.gnu.org; 17 Jun 2024 09:54:12 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 05:30:51 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287376 Archived-At: 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.