From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shynur Xie Newsgroups: gmane.emacs.bugs Subject: bug#65700: time when gcs-done is updated needs to be clarified Date: Thu, 7 Sep 2023 14:35:32 +0000 Message-ID: References: <83pm2uz6nv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "65700@debbugs.gnu.org" <65700@debbugs.gnu.org> To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 07 16:36:27 2023 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 1qeG7O-0008xR-Ii for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Sep 2023 16:36:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeG75-0004bG-PE; Thu, 07 Sep 2023 10:36:07 -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 1qeG6z-0004ai-38 for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 10:36:02 -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 1qeG6y-0004RK-RD for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 10:36:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeG70-0000oH-1S for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shynur Xie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65700 X-GNU-PR-Package: emacs Original-Received: via spool by 65700-submit@debbugs.gnu.org id=B65700.16940973473089 (code B ref 65700); Thu, 07 Sep 2023 14:36:02 +0000 Original-Received: (at 65700) by debbugs.gnu.org; 7 Sep 2023 14:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:40856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeG6l-0000nk-4s for submit@debbugs.gnu.org; Thu, 07 Sep 2023 10:35:47 -0400 Original-Received: from mail-dm6nam10olkn2097.outbound.protection.outlook.com ([40.92.41.97]:34048 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeG6f-0000nS-EG for 65700@debbugs.gnu.org; Thu, 07 Sep 2023 10:35:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YdjXL9VxXY7O64DtNUW//FCasdJ/QYw0LEdq+1T1dzmqkQEhoeYTEJOR72Clohu/PzUL7kyk8MrzHyaIsapEoOIO/wpbuE/1i5wQpTf0I+8e5d0Rck9vWdgPIFPYDY3TVrJA+PWvQjP1KdYan2re6dFEILy7CSOck3Mx4JwAcX0fSp+Hw7yRaqWFn5JnLfqsO27corDiBA2cnM/lA/jc3zBL/40jZjLbLwM22g/gcXiS/dLyt/+xKWdo+aRFjCwySyKG9ahgAIXzYikjua6EY3gCX1AX+X3Sujkt94L22GmyGl2jnFumSfD6OWyymtr5XgwqhF+xG8aGzTt2bbhI/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wMWyk1rWVYkG7nm4XDJJVpWsbNHU86skP1VdEo0C2Oc=; b=eVxROe27hB95LXuAEv3aZ7yWPdHOGxDFSuoKP6P0JrJsva5VqaX9Rp4//eDNNOg1w4tZZ4u4lSnfnGzqrZ9swZ3jmW6hX+BtOvGIBG9VXFi0ET/Ltlkrx9qmByv/j1l1wTz0uwF9koAu2nu0/Ad8IWGTFqqjjnfYnpCHxld0FNR6Ka6IQ3CTJRjndbNAjUlH6kORKyPvvUrddcIHsVM0AJ+FvS4qTp/QYQ+Oq3KNnN58xBmGnI/dWcDWlL4be7tMs7O4eoxUUApEtyTZJb0Y3kDCjcr+6Iv3C2Seeoh9snrOL2qqe2L/5I0e3XU2PwYzAwmSBvY+ZSSvDdfKwErKAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wMWyk1rWVYkG7nm4XDJJVpWsbNHU86skP1VdEo0C2Oc=; b=uzh9IuUCAVfTRmHVzmc1qw9ETUv1L7NklB1NwSIN89i0QEMnq2pPUR8KjvcJqIMA2ixVWlv4hBhOS0Q3exN17udtxxEKot1snDLMW1yFwPhQa+1PqaDmPxP29LS7W2MVOBMoNu2vPNgQHNidEDY0jsnbTj9L4RYhVbKNOyGYhGYdBKhp2z47bg0jgoAuZMLrEWehypV3usif7r0aSicM5NCWHekH31xNf4jr/67TZNbPG4DPXritTLRb9UlseDvXG/lPCd2XE4V/CS04uPsBhfHriknMDmD7vq5owYd42429YDvjNeUADxDO2rt1JYzY1+JiWPJWCHdfmQQ6/0FCRg== Original-Received: from PH0PR11MB7470.namprd11.prod.outlook.com (2603:10b6:510:288::7) by SJ2PR11MB7598.namprd11.prod.outlook.com (2603:10b6:a03:4c6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.28; Thu, 7 Sep 2023 14:35:32 +0000 Original-Received: from PH0PR11MB7470.namprd11.prod.outlook.com ([fe80::d0b8:54f7:2a45:2983]) by PH0PR11MB7470.namprd11.prod.outlook.com ([fe80::d0b8:54f7:2a45:2983%5]) with mapi id 15.20.6745.034; Thu, 7 Sep 2023 14:35:32 +0000 Thread-Topic: bug#65700: time when gcs-done is updated needs to be clarified Thread-Index: AQHZ3Z0HPeRk2UPAv0C1corkC0IZQrAPHFJWgABJrsGAAAeILQ== In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [FBmxVDFDeKyYmX4dIjKaFhWF1t5odcwd] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB7470:EE_|SJ2PR11MB7598:EE_ x-ms-office365-filtering-correlation-id: 363a8e97-9b23-4357-9638-08dbafafb102 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6Xg8TeSddoadOdq82CNfwjlAk6iNQ/eNbq6ISj3CYxCEyFcyUZlLXnnJxd9Z15RPfyBzBjNl3cZcZ8chadRoMoDUcqUv3gyGeJ+yGkyPXK2LHMS01q/uHfvejGPZiGK+0jJH2TDmv2OPNg8C6FmkZrPrl1ht518OE9qzI+Q4Aj4HH7pxZ4Zg5RqpeweJpVH7s8bnGeMNx/m36wwfmdZus4fuJN8fKc7rkfVZKk2WYX8nsQ3ALzN8fzhs77q5BvHUWJSOIM47SUAxG8ldroSddggd068hmvE6tNPKRELDewUJzfjLj0HkqMo7QXP9C2My/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2Oo0U4aNx/sP7KhszLYCx6hKyVQTVjt7yd07I9xoVLJDOH/EVqzaTii/kvKkUhdVIOX2W2CKdyNdz17r/fKew1N97fyc54D X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB7470.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 363a8e97-9b23-4357-9638-08dbafafb102 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2023 14:35:32.6403 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB7598 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:269668 Archived-At: > Stefan:=0A= > I'd be curious to know how it affects your code.=0A= =0A= My Emacs displays its runtime information like this:=0A= =0A= Since it's mainly related to GC, I have it updated after each GC.=0A= =0A= I believe I'm not the first person to do this; why others didn't=0A= report the bug may be that they don't care whether the number of GCs=0A= is exactly the same as they expect or one less, so they didn't really=0A= check when `gcs-done' is updated.=0A= IOW, if the update time of `gcs-done' is changed, I think most people=0A= won't notice this change at all.=0A= =0A= > Stefan:=0A= > "Philosophically", both choices make sense (either consider=0A= > `post-gc-hook` as being part of the GC or consider it as external to=0A= > the GC).=0A= =0A= I'm not a native English speaker. Does the POST in `post-gc-hook'=0A= mean the functions will run when GC is DONE?=0A= =0A= > shynur:=0A= > Is this an intended behavior? If so, I think the docstring of these=0A= > variables (such as `gcs-done', `gc-elapsed', ...) need to clarify=0A= > when the variable is updated.=0A= =0A= And `garbage-collection-messages'.=