From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Tue, 02 Jul 2024 16:15:28 +0300 Message-ID: <86ed8cc4un.fsf@gnu.org> References: <2syUQ04IbTWqDJjMfKSrtzWMWmFGq1GIOwSxv_r6BEyNDtk7ADADKjZk-90g9tSS9SKWppkiq6_zihUtsoE1spiopaOI6-v9inQrGxwMyCs=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@protonmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 15:16:48 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 1sOdNI-0004JP-2O for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 15:16:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOdMK-0006FL-8B; Tue, 02 Jul 2024 09:15:48 -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 1sOdM5-0006A4-Cw for emacs-devel@gnu.org; Tue, 02 Jul 2024 09:15:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOdM4-0006QD-3S; Tue, 02 Jul 2024 09:15:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=32wn/KxCMKXj+oxGkBfIEhPbzb9D2Qr0QqXrzRfxtD4=; b=E6GY7JmOVxviQnBe5Leg aJNOsyWGxEcxlLMgT8MRfFOEaPvMfRk97z0M8mSTmZS2opdXs6Nm9AR+h/5YRPwg9yh9J6FGpxARl dmSHtLuxu4zzsTrHRH7ymCswijughux16mj/xIQTA91LZPG3iNelcTaKBbL8kk3KK0ht1UwgpsHeF ZsapjobNqY8EAxoKXGq0k75wmc3bPtHIPC9bNt7cRD76NfNgHl8GFQcCI4bQ9QktzLpOXAf2CIzwd ICgayOYVhOD7QKmPxTfLJRXCvWsQf4IWs5Fz3s5BIW2xtE2ODtLz5ZvGkRnYZHv8STzC41kSl2bNO 0x+uzA0GE3O9jQ==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Tue, 02 Jul 2024 13:36:38 +0200) 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:321148 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , Helmut Eller , > Emacs Devel > Date: Tue, 02 Jul 2024 13:36:38 +0200 > > Gerd Möllmann writes: > > > I think they said somewhere it was done on Win32, but I can't find it at > > the moment. > > Found it: > > Emulation of accesses to protected objects happens when all of the > following are true: > > The object is a weak object allocated in an AWL pool. > > The MPS is running on Linux/IA-32 or Windows/IA-32. Extending this > list to new (reasonable) operating systems should be tolerable (for > example, macOS/IA-32). Extending this to new processor architectures > requires more work. > > The processor instruction that is accessing the object is of a > suitable simple form. The MPS doesn’t contain an emulator for all > possible instructions that might access memory, so currently it only > recognizes and emulates a simple MOV from memory to a register or > vice-versa. Do we even use weak objects in Emacs on this branch? If we do, what do we use them for?