From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#51692: 29.0.50; High CPU in c++ mode. Type finder? Date: Fri, 12 Nov 2021 10:47:46 +0100 Message-ID: <874k8hpulf.fsf@wavexx.thregr.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33006"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.4; emacs 29.0.50 Cc: 51692@debbugs.gnu.org, David Koppelman , Zhiwei Chen , Lars Ingebrigtsen To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 12 10:55:15 2021 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 1mlTH7-0008I1-4x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 10:55:13 +0100 Original-Received: from localhost ([::1]:54644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlTH5-0004em-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 04:55:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlTGw-0004ec-2w for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 04:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlTGv-0005sE-P3 for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 04:55:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlTGv-0000R3-N9 for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 04:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Nov 2021 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo confirmed Original-Received: via spool by 51692-submit@debbugs.gnu.org id=B51692.16367108911653 (code B ref 51692); Fri, 12 Nov 2021 09:55:01 +0000 Original-Received: (at 51692) by debbugs.gnu.org; 12 Nov 2021 09:54:51 +0000 Original-Received: from localhost ([127.0.0.1]:43493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlTGl-0000Qb-Jw for submit@debbugs.gnu.org; Fri, 12 Nov 2021 04:54:51 -0500 Original-Received: from erc.thregr.org ([46.43.2.63]:45740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlTGj-0000QS-Hy for 51692@debbugs.gnu.org; Fri, 12 Nov 2021 04:54:50 -0500 Original-Received: from [109.52.232.92] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1mlTGY-000EYZ-SG (envelope-from ); Fri, 12 Nov 2021 10:54:39 +0100 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219757 Archived-At: On Thu, Nov 11 2021, Alan Mackenzie wrote: > Yes, there is a bug here. CC Mode is expected to use a high amount of > CPU time (but not 100%) for a few seconds after starting C (etc.) Mode, > or for a few minutes after starting Emacs when there's a desktop with a > lot of CC Mode files in it. > > However, with C++ files (and likely Java files, too), a problem with > templates caused this 100% usage. High-burst is not a problem, however I have a related question. Is it normal that repeated C-g didn't abort? There's nothing that seemed to work for me except waiting, which means that with a few scrolling moves queued I just ended up killing emacs. I didn't test if there was a difference between JIT/no-JIT versions (should there ever be in terms of quitting behavior?) > Then please report back to the bug list confirming that the bug is > fixed, or telling me what's still not right. Tested in both the small test I posted and the full source file I was working with. Applied on master. Seems to be working perfectly now.