From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Tue, 02 Jul 2024 13:36:38 +0200 Message-ID: References: <2syUQ04IbTWqDJjMfKSrtzWMWmFGq1GIOwSxv_r6BEyNDtk7ADADKjZk-90g9tSS9SKWppkiq6_zihUtsoE1spiopaOI6-v9inQrGxwMyCs=@protonmail.com> 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="23398"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Helmut Eller , Emacs Devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 13:37:46 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 1sObpS-0005yZ-BQ for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 13:37:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOboU-0007zB-S4; Tue, 02 Jul 2024 07:36:46 -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 1sOboT-0007yu-B5 for emacs-devel@gnu.org; Tue, 02 Jul 2024 07:36:45 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOboQ-0000Xm-G5; Tue, 02 Jul 2024 07:36:45 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-58b447c5112so826913a12.3; Tue, 02 Jul 2024 04:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719920200; x=1720525000; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1AX7KCYxanTus0AuKHQzVfpw9vYC5egBAhyiPG8jVlg=; b=LvNvgEHS/JEX3fW9JQJDtTmkjLrmdR0xJF9+0DJNjz6O59xu/BmXMQn55FJjJ9n5Vv 7mPGtWA50rfU3/z3rFoyv+XndJq5xWwgaCndUIRmGNL2nvTJlwWZ4I3gTpCU2x3zYgQa 1yly9oyPXu8mCrgAk2SrgmzbpNKe3G9kbGbrkptD4nV1/4ezCYzGFWcTv04I0o5FTw8L ckzagMU7FU84LzBTQlHj6wefTvN90XihWzbWNHJLn+l/NkZrqiRqJqDmSNcopHdeJXsv YMxlRunTTHYp3ADQB+lvRRLG5S3/3r9WdOsXufUrurTyWg/qvIfBYWzW52NQNH6Yifcg PMJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719920200; x=1720525000; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1AX7KCYxanTus0AuKHQzVfpw9vYC5egBAhyiPG8jVlg=; b=GHdNxW6ejoRCd8f09SFGm/eGukj/HQIF+lR3MbaZqTkk56yASFttSNE63uQDLUnMnM EHsbKDhKsTe91HP6I+gigk24fp5T8x9M2h+iefdlSwr7fdDDIIk6cAtCfCNJlyHttjh1 bN7uaB7k2J7G9GmjOmu7WTZkEJHFd2rUZwLiKZ7fUDuFC2KDeyaUpTFDcDAT1vElAtvE gsTr7Q3e3KURtB4EvH50cWOH5kR9qwzCLteiq9CkWzNULH5W6QCBRr2V+Ndr2bINsml9 eXNrRArOXDYz8LdQ2b1lfTU8s/ZERyHklXjMGxYaSPfXAzaoGqKHYkw6tSsxZKXHbaST 5KNQ== X-Forwarded-Encrypted: i=1; AJvYcCURJ+2MY5GLlWkv/frp3hyPsaJDZn4OSWTvL0MtGb6WIWfCuugUdJVn14tx747VtbOymCVhqfKuVgf720KCNMhGCbjy X-Gm-Message-State: AOJu0YxVlbXRkVo8dG3eYu9llcbdP01OOe4wPcWaEtWjt0VmB9VwEeGW NVRqUAOQ6if9/Y58/Q3k5t/xeOfIi9oIFinwXiD2ePSz4qRI37ZRMyKm7A== X-Google-Smtp-Source: AGHT+IEx0RiSrwK70ZysIAfc3O0VbJ6j5YHxUDkEdrGhEbResLYY2u/ynWoUUde8QRlDFIZyTzniGQ== X-Received: by 2002:a05:6402:5216:b0:57d:4ca4:61ba with SMTP id 4fb4d7f45d1cf-5879f4a570bmr6583981a12.10.1719920199833; Tue, 02 Jul 2024 04:36:39 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36129.dip0.t-ipconnect.de. [217.227.97.41]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58614f3d3f1sm5517110a12.94.2024.07.02.04.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 04:36:39 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 02 Jul 2024 11:37:23 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52c.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:321126 Archived-At: Gerd M=C3=B6llmann 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. =20=20 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. =20=20 The processor instruction that is accessing the object is of a suitable simple form. The MPS doesn=E2=80=99t 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.