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: Outdated comment in eval.c? Date: Wed, 22 Sep 2021 10:09:02 +0300 Message-ID: <83o88lw0hd.fsf@gnu.org> References: <87h7ee3b7d.fsf.ref@yahoo.com> <87h7ee3b7d.fsf@yahoo.com> <83zgs6zc24.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12092"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 22 09:09:51 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 1mSwO7-0002yG-Fe for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 09:09:51 +0200 Original-Received: from localhost ([::1]:51506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSwO6-0002oL-EZ for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 03:09:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSwNR-00024o-Vn for emacs-devel@gnu.org; Wed, 22 Sep 2021 03:09:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54376) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSwNR-0004Hb-OX; Wed, 22 Sep 2021 03:09:09 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSwNO-0004rH-TX; Wed, 22 Sep 2021 03:09:09 -0400 In-Reply-To: <83zgs6zc24.fsf@gnu.org> (message from Eli Zaretskii on Tue, 21 Sep 2021 09:18:27 +0300) 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:275295 Archived-At: > Date: Tue, 21 Sep 2021 09:18:27 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > The issue is still valid, although it's now more subtle, and 'For' is > no longer a useful reference. GC can relocate buffers text and string > data, so the issue nowadays is to be careful with C 'char *' pointers > to buffer text and string data, and recompute them after every call to > a function that might trigger a GC. > > I will see how to reword the comment, and will probably move it to > another place, where it is more pertinent. Now done.