From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Po Lu <luangruo@yahoo.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Emacs design and architecture.  How about copy-on-write?
Date: Thu, 21 Sep 2023 08:55:49 +0800
Message-ID: <87zg1gqr8q.fsf@yahoo.com>
References: <m234zfz3l4.fsf@Pro.fritz.box> <83ttrsg9nx.fsf@gnu.org>
 <ZQcc6739eWDcXj8o@ACM> <83h6nrg4eg.fsf@gnu.org> <ZQg20M2W0gHwrZki@ACM>
 <83v8c7elan.fsf@gnu.org> <877conk5ny.fsf@localhost>
 <83ttrreeu0.fsf@gnu.org> <87bkdzeas1.fsf@localhost>
 <83cyyfe5l8.fsf@gnu.org> <8734zbyu6o.fsf@dataswamp.org>
 <835y46e8o9.fsf@gnu.org> <87zg1ixvnc.fsf@dataswamp.org>
 <87il86nxts.fsf@localhost> <87o7hyx8h2.fsf@dataswamp.org>
 <87o7hx88ry.fsf@localhost> <87a5thta90.fsf@yahoo.com>
 <87led1865h.fsf@localhost> <875y45t7yo.fsf@yahoo.com>
 <874jjprmq2.fsf@yahoo.com> <83a5tgc03s.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="35443"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cc: yantar92@posteo.net,  emacs-devel@gnu.org
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 21 02:57:11 2023
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1qj80F-000927-6x
	for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Sep 2023 02:57:11 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1qj7zH-0002hk-F6; Wed, 20 Sep 2023 20:56:11 -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 <luangruo@yahoo.com>)
 id 1qj7zF-0002hI-Nx
 for emacs-devel@gnu.org; Wed, 20 Sep 2023 20:56:09 -0400
Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@yahoo.com>)
 id 1qj7zC-0001eB-VZ
 for emacs-devel@gnu.org; Wed, 20 Sep 2023 20:56:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1695257764; bh=rUp32Mg7wyW6yqlHWQGnBzQ11ryMYu5GTYd3PK0XlFI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=ufPgtHdJuqL/g4NJ40+Us4cQJ1LQC9/W2aRi7q/nMJe8MnNa0F4+KNbmpai13BL884+pkMxaMdIa+6RerJ2pfMvEeyTqGZMKT3rqxQmUahb1fjeMI9SsPDe3Lghpqy6RheX9qd6nt1LzhhCwoY+uXBzp/aeWcIS/LDOccrfAAKFwshRdCaUN2vN0FB+WSoe64AeBfyREjTtlJtz/ns5so8n1iyiaWQwpXy30kINzLByJetyzWFZnGN+qT6HC/gDYJjsJAMNJd2RBiMYUBbAk/mwfB7OoSo8trzEKLexoRS8g9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2SNVA58N
 hMxchV8y0pxvT.243GUIvrKRJmYqaBBqoQlRh4Guo6CGgFDeiJ7e8gxmUymyeKDHItpe4GgVCi7T
 Uh.dCmHjdcKSIu36AiGcYBqgof0UBGXAyVy9EceBjRHsEp2_VvwqfP7pyCjrZb_1c_mX023nnmD7
 MVp2sxPezZUuxbDo1m.fDvtWTMujGlooraGEdrHG_dcWUVDnJrISa9JPAJosXCiJbFz2840EFy3V
 LHEWeJTgH3ceLChlmhVl9zHWmtBKziSCXclyUBk01wmKVUl64zeS4DnwrecugAcUUrJ16TO.uD5k
 _w0kQ7jUDKnzItPq9qmt.j9KdcZmPpJs7t_J_Um2UW 
X-Sonic-MF: <luangruo@yahoo.com>
X-Sonic-ID: da87f004-b43e-4a87-9937-b39b12b7d200
Original-Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Sep 2023 00:56:04 +0000
Original-Received: by hermes--production-sg3-55c667b499-mbg4m (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID c729dd02146e72430f23aaffbcdacd05; 
 Thu, 21 Sep 2023 00:55:56 +0000 (UTC)
In-Reply-To: <83a5tgc03s.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Sep
 2023 18:53:27 +0300")
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Received-SPF: pass client-ip=66.163.184.148; envelope-from=luangruo@yahoo.com;
 helo=sonic309-22.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:310857
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/310857>

Eli Zaretskii <eliz@gnu.org> writes:

> And don't forget that the globals defined in globals.h are just those
> we define in C.  There are many globals defined in Lisp.

Those don't contribute to the size of struct thread_state; an alist
between threads and its local value is dynamically allocated when a
symbol is bound locally.