From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Concurrency via isolated process/thread Date: Mon, 17 Jul 2023 17:39:46 +0800 Message-ID: <87cz0q7u71.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <83ilawhpi6.fsf@gnu.org> <87zg48apwr.fsf@localhost> <83edljg8ub.fsf@gnu.org> <87o7knbxr7.fsf@localhost> <838rbrg4mg.fsf@gnu.org> <87ilavbvdr.fsf@localhost> <834jmffvhy.fsf@gnu.org> <878rbrbmwr.fsf@localhost> <83fs5zecpo.fsf@gnu.org> <87351zbi72.fsf@localhost> <83351yevde.fsf@gnu.org> <87cz12ad2w.fsf@localhost> <83a5w6cwdr.fsf@gnu.org> <87pm518m0g.fsf@localhost> <83o7kl9tyj.fsf@gnu.org> <874jmd89us.fsf@localhost> <87y1jf29a4.fsf@localhost> <878rbf0y6b.fsf@localhost> <87h6q36ijw.fsf@yahoo.com> <875y6i2a3n.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39261"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 17 11:40:53 2023 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 1qLKir-000A1o-BB for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jul 2023 11:40:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLKi2-0000wI-EX; Mon, 17 Jul 2023 05:40:02 -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 1qLKi0-0000vb-SF for emacs-devel@gnu.org; Mon, 17 Jul 2023 05:40:00 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLKhz-0005Jj-5B for emacs-devel@gnu.org; Mon, 17 Jul 2023 05:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689586796; bh=dYe4DS2hg/MuM4MOVMeN4HUxdlnSb9s9kMq6veD3PY8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Dmczrj227Z5oa9qluz0LmbMTxeM7zeXiY61+kOF4S+oz8Knea81yA8qIdtIiw4RzpZO4DKGCkkgampQA6ZV+AijUJ8ulL7xyB9b51/zIWrvhkbDIeJYKyAjqxeeji0JSSi4mCiHTPCb14VykAUCQtE3NyIgl2znd3MoCWDl2S48QcDHspe6/NAd3NYvNK9KbG9vzpvR42xbrxdIyM/43AfewBUW9QV56ZOSWgWmDdGzj0RlbTo+ZJDVkJNrSHGCWiKWPN3DfaI3U7OQyPCmIIlNthpuUtDRXKoQzeXKjC48GIkMAwjgPBqFpF2jrwUgVE981XYpqjhyXyjR+eKNSJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689586796; bh=nhPMSbUKhDpaTSVLHPhJ5r2KYFalBCIR3cHRn6lp4vf=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Jy8e7uYrwI+lrrpujbOk4gdtPYcfY0xlgbP3ik0V4Ny/6ksLvYNv9HT8iVX/mNC3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3c1d_tiysClxzxC8iFBj25OtLNx7fgdMJkFC tI3KhscV8Pts9EPBB_ojn13UWTu4lnVzUULq1Qr5pC X-Sonic-MF: X-Sonic-ID: 882ad86c-da8f-4ba8-b7cc-c88629b7775f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 17 Jul 2023 09:39:56 +0000 Original-Received: by hermes--production-sg3-67fd64777-bps25 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 744934dda30db1ae75fbca1e55fa0acd; Mon, 17 Jul 2023 09:39:51 +0000 (UTC) In-Reply-To: <875y6i2a3n.fsf@localhost> (Ihor Radchenko's message of "Mon, 17 Jul 2023 08:52:44 +0000") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.204; envelope-from=luangruo@yahoo.com; helo=sonic311-23.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, T_SCC_BODY_TEXT_LINE=-0.01 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." 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307921 Archived-At: Ihor Radchenko writes: > Mostly because it will involve more changes than I was hoping for. Fundamental changes to the Emacs Lisp runtime will unavoidably involve an immense number of changes, of course. > And I am not sure how things will affect memory alignment of symbol > objects (I do not fully understand the relevant comments in lisp.h) How is any of this relevant to symbol alignment? Please tell us which comments you're referring to. > we should be careful about concurrent read access to struct slots in > shared objects. Fortunately, there are very few direct references to fields within Lisp_Symbol. > If there is some memory re-alignment happening concurrently, we may > either have to use READ_ONCE (and degrade performance) or be extra > careful to ensure that memory does not get shifted around, and we do > not end up trying to read wrong memory address because some other > thread wrote staff into the same symbol during the read. Memory re-alignment?