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 05:58:19 +0000 Message-ID: <4JQ7mGAwBrGOLmq0SzqnMOSkzoEFxTOfGHxGzJ8fa48FMVlfasV4QTPgE3E8yidy4XXamrIt3gg9Lv_TSJkOO5IIz4VDmygEtBAEsvhIusM=@protonmail.com> References: <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_pToHR9EY6dFYieJKID7b52l2POrIP0T9Hg1eQycd80" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7078"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Helmut Eller , Eli Zaretskii , Emacs Devel To: =?utf-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 08:49:34 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 1sPzEj-0001Zo-NB for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 08:49:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPzEB-0002Yx-Ev; Sat, 06 Jul 2024 02:48:59 -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 1sPyRK-0007kl-AY for emacs-devel@gnu.org; Sat, 06 Jul 2024 01:58:30 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPyRI-0006vD-De for emacs-devel@gnu.org; Sat, 06 Jul 2024 01:58:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720245504; x=1720504704; bh=M3K6JbafR4NZQjpewFqqsdWh5KUcSGMf9Dk7YHlhKJI=; 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=u++XyXMyHYibs4iFmuR66rc2eJoeHkQVLRf52FadGvmwRaXte2dP9ZXzaOPnYz5eF mTIxjIVknUr9WDV9oODYs708b4A6rXAZyWTJH8zFSFMXD5w5IzRuVG2dnNy0SHVD4V X9kUbcN6chAGx3OzEJ3H5L5AzSoIoHv4SxGAHbjTWgQehd4aR5377hCLyUjZEbYsOh /0NTcupc9Id6oy1yNiX2YyuQbZtL7fAkuFYqsefhUfYb5HB6CdinMmYS9OUw6LWbgS YofzFIYKI4eCzIpxXszkP6IRG7G1m2kfsm2xTLmv/Pmo3aE4CoOp2jT9+PkZfm9XZE tshpF0xVdcgyA== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 0e329b6717ec11f3c8656a8200d734f9ca071d4e Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.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_H3=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 02:48:57 -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:321412 Archived-At: This is a multi-part message in MIME format. --b1_pToHR9EY6dFYieJKID7b52l2POrIP0T9Hg1eQycd80 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Saturday, July 6th, 2024 at 03:39, Gerd M=C3=B6llmann wrote: > Pip Cet pipcet@protonmail.com writes: >=20 > > What I'm doing right now is alternating usleep(10000) and > > igc_collect() in a secondary thread. That crashes somewhat > > reproducibly in interactive sessions. >=20 > Could you please make that available in some form? Sure. I was thinking about cleaning it up (usleep is non-standard) and comm= itting it behind a stress-test option, actually. Right now it's dying because specpdl is a union type and GC might hit while= the main thread leaves it in a partially-initialized state. I vaguely reca= ll turning it into a struct for that reason on another branch years ago... Pip --b1_pToHR9EY6dFYieJKID7b52l2POrIP0T9Hg1eQycd80 Content-Type: text/x-patch; name=0001-igc-stress-test.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-igc-stress-test.patch ZGlmZiAtLWdpdCBhL3NyYy9pZ2MuYyBiL3NyYy9pZ2MuYwppbmRleCBmMTU0YTA0MGEwZS4uYmUy YjlmYjcxOWUgMTAwNjQ0Ci0tLSBhL3NyYy9pZ2MuYworKysgYi9zcmMvaWdjLmMKQEAgLTQ4MjAs NiArNDgyMCwxNiBAQCBpZ2NfYnVzeV9wICh2b2lkKQogICByZXR1cm4gbXBzX2FyZW5hX2J1c3kg KGdsb2JhbF9pZ2MtPmFyZW5hKTsKIH0KIAorc3RhdGljIHZvaWQgKgoraWdjX3RocmVhZF9mdW4g KHZvaWQgKmFkZHIpCit7CisgIHdoaWxlICh0cnVlKQorICAgIHsKKyAgICAgIHVzbGVlcCAoNTAw MCk7CisgICAgICBpZ2NfY29sbGVjdCAoKTsKKyAgICB9Cit9CisKIC8qKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgog CQkJCSAgSW5pdAogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqLwpAQCAtNDgzMCw2ICs0ODQwLDggQEAgaW5pdF9p Z2MgKHZvaWQpCiAgIG1wc19saWJfYXNzZXJ0X2ZhaWxfaW5zdGFsbCAoaWdjX2Fzc2VydF9mYWls KTsKICAgZ2xvYmFsX2lnYyA9IG1ha2VfaWdjICgpOwogICBhZGRfbWFpbl90aHJlYWQgKCk7Cisg IHB0aHJlYWRfdCB0aHI7CisgIHB0aHJlYWRfY3JlYXRlICgmdGhyLCBOVUxMLCBpZ2NfdGhyZWFk X2Z1biwgZ2xvYmFsX2lnYyk7CiAgIHNldF9zdGF0ZSAoSUdDX1NUQVRFX1VTQUJMRV9QQVJLRUQp OwogfQogCg== --b1_pToHR9EY6dFYieJKID7b52l2POrIP0T9Hg1eQycd80--