From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65700: time when gcs-done is updated needs to be clarified Date: Thu, 07 Sep 2023 12:14:44 +0300 Message-ID: <83pm2uz6nv.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65700@debbugs.gnu.org To: Shynur Xie , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 07 11:16: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 1qeB7j-0002xt-5G for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Sep 2023 11:16:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeB7O-00023Z-9o; Thu, 07 Sep 2023 05:16:06 -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 1qeB7L-00022t-11 for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 05:16:03 -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 1qeB7J-00049I-0n for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 05:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeB7K-0003YR-IU for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 09:16: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.169407811013580 (code B ref 65700); Thu, 07 Sep 2023 09:16:02 +0000 Original-Received: (at 65700) by debbugs.gnu.org; 7 Sep 2023 09:15:10 +0000 Original-Received: from localhost ([127.0.0.1]:38578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeB6P-0003Wt-Kj for submit@debbugs.gnu.org; Thu, 07 Sep 2023 05:15:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeB6N-0003W3-Fb for 65700@debbugs.gnu.org; Thu, 07 Sep 2023 05:15:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeB6G-0003lh-Gf; Thu, 07 Sep 2023 05:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0PlYcWN4bdw6NCWJnwgf+ljmO2jWJA/smxrsKWFod6s=; b=jG4gNJNymyaX WPKnPuv+9naLbAdP11H0RL1SnYBxRnJheCo+S81MeS8x5s6ex7xdZ/r5egJXhcYvZlSPkCsWmtBBb 4u7KXunYeFf35DaNrLk1GSNE5od98JRZq0LuiOdIT3Znjuyhb2JTM6fpe+B94KkwL+cxTqF4Q2uTX 0n3f6g9FEgYdKxH0A9Lin/TTBLIyJEKOiop+AsrIQO4lJapjOnKHsaeINk+o5micue1czRmJQJDmD oAyCYgicfW/zTm4etGHS0C4tPdK2WabO7Abaix+wI5fa8ZxK3gHRPixqf7xpARyxXPQ0z3NIQlK25 bj5/jVFN8oBvwQAIRXAB9A==; In-Reply-To: (message from Shynur Xie on Sat, 2 Sep 2023 13:00:59 +0000) 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:269625 Archived-At: > From: Shynur Xie > Date: Sat, 2 Sep 2023 13:00:59 +0000 > msip_labels: > > I wrote a function which runs each time Emacs collects garbage, so I > added it to `post-gc-hook'. > > That function cares about the value of `gcs-done' and the value of > `gc-elapsed'. > But it seems that `gcs-done' is updated after `post-gc-hook' is > executed? > > Is this an intended behavior? If so, I think the docstring of these > variables (such as `gcs-done', `gc-elapsed', ...) need to clarify when > the variable is updated. Stefan, any comments?