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, 10 Jul 2023 21:18:15 +0800 Message-ID: <87cz0zdhwo.fsf@yahoo.com> References: <871qhnr4ty.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> <83cz119lxu.fsf@gnu.org> <87v8et6q5m.fsf@localhost> <838rbp9h6c.fsf@gnu.org> <87edlg6m2l.fsf@localhost> <87o7kkc6bl.fsf@yahoo.com> <878rbo6jdq.fsf@localhost> <87jzv8c4qn.fsf@yahoo.com> <874jmc6i89.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="748"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 10 15:19:27 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 1qIqnV-000AR1-Ex for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Jul 2023 15:19:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIqmc-0000d8-1z; Mon, 10 Jul 2023 09:18:30 -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 1qIqma-0000cz-Ga for emacs-devel@gnu.org; Mon, 10 Jul 2023 09:18:28 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIqmY-0001F9-O8 for emacs-devel@gnu.org; Mon, 10 Jul 2023 09:18:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688995104; bh=ymktwWelTJF3Z7p4/RzzwKjJrKC0pApmih677GRF2d8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=LFPkBqCZ/IzzP9q+PDANC6fGKK0Wum/KlcrOKvj9HIfk11iNF4dJEivwyNSmSaWmGfePPcAnRa1ASb2vwDHAjqQXS368ZFF6ORZ8Q1rrL3J5Hvm7bhpE1yNY01TOt5/VAwe1S1dkkOnhhj9KK2CLKCkrYozHKhH/kS8dw6HVvrUwgOiglVnlwYIOeeU9HP1BXIViJEf9qNKuJJiogt3qHQg0glEec+uEeJ6LWiuzrdkNbmWsNmcjBkdF9HX/Rt1Z7tVsw2U0zOEx6Fq2/DatE6bP9QjWK1LhVPLS/7/HKaSzmXpztSR/we2U3RT20RZ9WbHURwLJex/HrQCXrQvVRg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688995104; bh=CY6yMjgR65AZlLl0thQI0uaQkQ1NFrf9lFBUz2HSLp/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ru06r4OmCwVq2IgAeuV5c7d1fO7axPyHrvxnjXaX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YQAqbnoJgTwmOhJ1POsljVSuM7WTyV2.ZVg2Y5EWgJ.IWHd82i1h0Iy .m7gDheShug1qra9pqQCtCPMHYffIbdw1NlmxvNoWS X-Sonic-MF: X-Sonic-ID: 5500165a-e418-4765-8889-c18662790123 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Mon, 10 Jul 2023 13:18:24 +0000 Original-Received: by hermes--production-sg3-67fd64777-9kgfz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e96c9b8088f9b2f2b96c4cc68acda5c8; Mon, 10 Jul 2023 13:18:22 +0000 (UTC) In-Reply-To: <874jmc6i89.fsf@localhost> (Ihor Radchenko's message of "Mon, 10 Jul 2023 12:53:10 +0000") X-Mailer: WebService/1.1.21638 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-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:307721 Archived-At: Ihor Radchenko writes: > Then, may GC simply suspend all the threads every time, not just when we > have memory_full condition? The easiest way to make Emacs's GC thread-safe is to make it suspend every thread other than the one performing garbage collection.