From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Sat, 06 Jul 2024 09:23:27 +0000 Message-ID: References: <878qyf4sgm.fsf@gmail.com> <4JQ7mGAwBrGOLmq0SzqnMOSkzoEFxTOfGHxGzJ8fa48FMVlfasV4QTPgE3E8yidy4XXamrIt3gg9Lv_TSJkOO5IIz4VDmygEtBAEsvhIusM=@protonmail.com> <86le2f5874.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 13:00:45 2024 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 1sQ39p-0002OD-5C for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 13:00:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ39L-0001S0-05; Sat, 06 Jul 2024 07:00:15 -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 1sQ1do-0006Ki-TF for emacs-devel@gnu.org; Sat, 06 Jul 2024 05:23:36 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQ1dn-0003Th-3i for emacs-devel@gnu.org; Sat, 06 Jul 2024 05:23:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720257812; x=1720517012; bh=mPLABrGzetW152PzUNQ9L5GrSy8wkiARdvsSUjAEOUs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=fRChrJyqrJj/swFtcfzxKK3BJnA/97we3nDr6fgCodtYKasvF7/VuzRvcHhwY9wi5 zNPJfu36hcskUT25kaUepDPhswqLSjLZW/pZ2g6WkjFjIzd7kFH3Lcs548d1RIjIko Fpzzc0E+FU3YarSCj23uU6frzX/YlL0OI6+CVKp9XzolkwIv+PB9Vj/xu/yoyXIjP5 RacH/vanu39w4GwYems2w2q309jcFLZQAem6JB5rOFvXUslFTcYMEYTE/LsmthbMTX YbW8+DtBisjM4kZy0CMC1vkyNyvZsPge2s6b7zOCm1+92ifs8zck8fXQ3g/OCrUN1M 2fwHszwJWnKxQ== In-Reply-To: <86le2f5874.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 438b52fa5516c2c2d6aace14e03f6f167132c628 Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.protonmail.ch 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Jul 2024 07:00:13 -0400 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:321419 Archived-At: On Saturday, July 6th, 2024 at 06:46, Eli Zaretskii wrote: > Thanks, but why is this important or interesting? We are not going to > add native threads to Emacs. We do want other threads to be able to access MPS-managed memory, don't we? And the bugs it has caught so far were actual bugs. I believe this is true = even for the specpdl thing, though we could avoid that by trusting our thre= ad data more. > Also, AFAIU, MPS docs says to register each thread with it, and your > code doesn't, AFAICT. It needs to be registered as a root if it is one. This one isn't. It also n= eeds to be able to be suspended, but on pthreads that's handled automatical= ly. You're correct, though, that it's possible this will crash on code that can= 't actually crash without the extra thread. We need to look at each crash a= nd decide whether it is. Pip