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.devel Subject: Re: master d582356: * src/fns.c (Frandom): Handle bignum `limit`s Date: Sun, 07 Mar 2021 17:22:13 +0200 Message-ID: <837dmjt2e2.fsf@gnu.org> References: <20210305170955.27732.27579@vcs0.savannah.gnu.org> <20210305170957.AF99920E1B@vcs0.savannah.gnu.org> <83sg58wu0v.fsf@gnu.org> <83k0qkwnwt.fsf@gnu.org> <838s70wdb5.fsf@gnu.org> <83a6rft5z9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26153"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 07 16:23:04 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lIvFI-0006im-9F for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Mar 2021 16:23:04 +0100 Original-Received: from localhost ([::1]:53652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIvFH-0000fy-AX for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Mar 2021 10:23:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIvEd-0000FV-G5 for emacs-devel@gnu.org; Sun, 07 Mar 2021 10:22:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58394) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIvEd-0003Ly-4k; Sun, 07 Mar 2021 10:22:23 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1346 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lIvEc-0000ys-AY; Sun, 07 Mar 2021 10:22:22 -0500 In-Reply-To: (message from Pip Cet on Sun, 7 Mar 2021 14:21:51 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266130 Archived-At: > From: Pip Cet > Date: Sun, 7 Mar 2021 14:21:51 +0000 > Cc: Stefan Monnier , emacs-devel@gnu.org > > > > > I don't think I understand how will we know which function says it > > > > never calls GC. > > > > > > By tagging it in the source code? > > > > How do you know which functions to tag? > > That's the part I wasn't volunteering for :-) We'd have to do that > manually, but we wouldn't have to do it all at once. I don't see how we can do that, without some methodical procedure. > > How do you know in which functions to add DONT_CALL_GC ? > > That's not something we can decide automatically, is it? No, I don't think so. > But usually there will already be a comment in those functions > explaining that they must not call GC, right? No, I think these are rare exceptions rather than the rule.