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: Thu, 04 Jul 2024 18:46:40 +0200 Message-ID: References: <1VNw6cPSIpKfxNRqQBpVleX2BDbQuUqwLQzo-C8N-_PRvNNLG3BnhbcWpUJkiJYnOogBvqRTcLApebjqdZel7CgXVx9T0CnPn6_go_AugDA=@protonmail.com> <-plQctKgNkvp-LJ9ov2QAiXQKxd9V-hI0yz_opRGxQtbknubCjH4rH2-ymgbw_Qr1ZhB1rtlmiEW8XtuIVNr7nR_Yj20AH6WkH6kUGp68g0=@protonmail.com> <87msmx41x0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25559"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Eli Zaretskii , Emacs Devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 18:47:51 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 1sPPcd-0006Tf-HV for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 18:47:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPPbb-0000DC-2f; Thu, 04 Jul 2024 12:46:47 -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 1sPPbZ-0000Cl-As for emacs-devel@gnu.org; Thu, 04 Jul 2024 12:46:45 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPPbX-0001zi-OW; Thu, 04 Jul 2024 12:46:45 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5854ac817afso1067467a12.2; Thu, 04 Jul 2024 09:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720111601; x=1720716401; darn=gnu.org; h=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=hc30pSj0SQYIu9fHkPy9wmgYDiYnKv7+khCh7iZMYnQ=; b=LLFrWyux3SPeIddiA5oUrR9YiX6hAcBiJ1YWVsnVK7+FxKzK3+j6iC3mbweUkN7KRs x9hOFiutqXmT0arhOf+iTl37klAiivXpk0Fq1EBUhG1p1UQG9XF1nmRJcq188UFgcwk7 8zcEXR/mtWaFiFfBcBU3TzOo4bnEZNxQTGJMiRCXbgJ0eFnS7gbBi3HnmiA3LQ+xvlT1 YF5kalKuYFM4YsgQiglTodqgtXLJScK9Lk5pJ2+/9w/loJGBJQzbGMSTFT0D1a2ophtN rwZ6LRA6ECbNvw1DtocK/64txnVBb38GdtkrvVtExiMKa4Tw8Tg/r8923soUvLJ/Nysy UcWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720111601; x=1720716401; h=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=hc30pSj0SQYIu9fHkPy9wmgYDiYnKv7+khCh7iZMYnQ=; b=tOi7djPGRSnIHDQ8dW/1L+ABRDbc8gCMEmFb2rOTbLNCuJeYvNgGvHxfuLyaTItj+u kRnE/RJpJwp3h4lHmQEQHJWve+TFOAz9m7wvxNRmgEQuAp2gcDJU47AoETXxlgvZeV91 odBi/w6+7N4MPor0Td9dgbfTsZNCFDr9XUc2phO6gY0YytdRj0hqjcHc21tFBUfaXx40 Hw2Xn88pcDM+AxBqVjsRmZiyndpnoYhR15VhOkexP9uXz70LYq0LcJA5gUhWFCpNr68s EBBfEg5WMahQo27MHGQfvd1YwlftNqrd2x7/lFQ+hiFmH7j8nys2XdlooMkN6n9Y/y9U 9wXg== X-Forwarded-Encrypted: i=1; AJvYcCUkQ4NT3jM8fBtIojDlIIilH7nxOT1gyO6xxNnuWd9ETX0iWhMMwh65G1LhhvmAYwY1G03ok40oH16NTEd9L4fov0d5ClzS0e3kFNT7R7tMpxg= X-Gm-Message-State: AOJu0YzSqdwiMxN1qNRKG4PsyWrrV1VHzFXZv0gWkQcDiRNO1Jk/S86a YGYtf09hmS2moBujoKbWG51oWdSSwcdzoFmluahESXyFheFxD94Xicx5AQ== X-Google-Smtp-Source: AGHT+IERl3dlIaqfN3xU06fTVaEPfdvSDhN/cAEBtgvf/cXW6zl2k7Nmbr13UWuN6hXzSVtoiAksIg== X-Received: by 2002:a05:6402:2353:b0:57d:4ca4:61ba with SMTP id 4fb4d7f45d1cf-58e5abd9fb8mr1756438a12.10.1720111601378; Thu, 04 Jul 2024 09:46:41 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36fa8.dip0.t-ipconnect.de. [217.227.111.168]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58f24eda269sm236120a12.25.2024.07.04.09.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 09:46:40 -0700 (PDT) In-Reply-To: (Pip Cet's message of "Thu, 04 Jul 2024 15:33:40 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52a.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:321341 Archived-At: Pip Cet writes: > On Thursday, July 4th, 2024 at 15:22, Helmut Eller wrote: >> On Wed, Jul 03 2024, Pip Cet wrote: >> >> > And of course the same needs to be done for the marker vector, right? >> >> >> It also needs to be done for the headers, right? I mean, the last >> significant bits of the igc_header must be non-zero. > > Indeed (and IGC_OBJ_WEAK_HASH_TABLE_STRONG_PART is 32, oh no!) I just > proposed turning the igc_header into a plain integer (rather than a > bitfield) interpreted by igc code so I could put a tagged pointer > there, but we'd also handle that. That would also make it easier to > add igc_headers to all objects: we'd simply put an igc header into the > structs or into pure space and fill it when we register the object. How ugly. And all because of software emulation of IA-32 :-(.