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: Sun, 07 Jul 2024 16:15:54 +0200 Message-ID: References: <878qyeffjh.fsf@localhost> <8734olzlws.fsf@gmail.com> <867cdx32e3.fsf@gnu.org> <864j912t0s.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="11310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, eller.helmut@gmail.com, yantar92@posteo.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 07 16:16: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 1sQSgr-0002iV-JU for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 16:16:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQSgM-0006df-9w; Sun, 07 Jul 2024 10:16:02 -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 1sQSgJ-0006dO-Ly for emacs-devel@gnu.org; Sun, 07 Jul 2024 10:15:59 -0400 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQSgI-0000dn-AY; Sun, 07 Jul 2024 10:15:59 -0400 Original-Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a77b550128dso387238266b.0; Sun, 07 Jul 2024 07:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720361756; x=1720966556; 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=qu2NMhCIsNf5pj0hE75tlN+R7wYEuZPGNh+VMEILUZ8=; b=HDCDDV1JI0xWDGgAxT+qNsB2KwfUhAu+gM8lJdtD5T3LpSzVGv/Uk5/nlksnU3u9BL IZzEVnZalVqV93RPoOvgBG19YzLpQcshJQ8j5Z6DUXC83/jRUYxuTuFfgszTsuHqc6cD 5cJBH5n1TC3roVZgCgJbj5TuECW/Ta5zUubjZsjNvdmH3c4bURV4TLaXqBZiVprNgE0T 7Wx2y5yrcqmoHpfLi5zfAyKdun1qryCEYLClKuoN2XpK9IeFRbJwR10XIDIMx4Mno80o 2WjIp9p+Oyrxoo0vJQla/oFwM+Wf0CB0lxSK7Z1HdSzaVhYZVLAmT7rpbWDT/MTFwTj7 QCew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720361756; x=1720966556; 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=qu2NMhCIsNf5pj0hE75tlN+R7wYEuZPGNh+VMEILUZ8=; b=S1kgxtx5Nbw1Wuxlwa9RfMT/kkvJMpgMsxJKj1YnFsILc30omhtZK4Ews+bO3HZE5n tXPlV/BPKndnKIH6/nxn6QL2gDHbgGBPVDZHHPNyKuUWoZZsEMWXgaHuPJfGa1ssJzlT z1KxjgSwxASRlYfW6CODJ/wXg6L5tdh6f8P/nRAz6r3v2DUc1RgMn82rbBNeYtdRIiCw KaL6jDheqg0oE0wOGfcTHEkgRJWAwPyAny2QAMhtVDugwdA1xOR2H0ztdx1iub1DZJNZ rAXCEoZhTBFWucEOrQvavWOPiZku/vrNj7z76ukqkB4MrEHAULyhodH8oPXZHq5gOskS 2oZw== X-Forwarded-Encrypted: i=1; AJvYcCXsrVK0o9wW+9HyPk4/pjEk6Y34Fg2SKMErV8IU2v603hSKDP52F74UVlgETCpwwmelsBNlqaUi2jelDFRUV8unJiM7 X-Gm-Message-State: AOJu0YwFAicSAVWrz+JHZalHR6QNYlLneauaG9QFi6nbTkU0N2xX3/mO z+iDHpXODbSPvMx75XAkTu7PkbR2ZF3/my8cObbdv5BnUX19m5Wxqucvnw== X-Google-Smtp-Source: AGHT+IHSMoU5oWI9d88ZQ0M414PajZz9N1twA3qLQcuflPcwDpgDSQSG0VMJiJtE4rynGnAzbjo95w== X-Received: by 2002:a17:906:34d3:b0:a6f:bf5d:b365 with SMTP id a640c23a62f3a-a77ba48d38dmr763112766b.33.1720361755988; Sun, 07 Jul 2024 07:15:55 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a778.dip0.t-ipconnect.de. [79.227.167.120]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b28bda98sm815561866b.191.2024.07.07.07.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jul 2024 07:15:55 -0700 (PDT) In-Reply-To: <864j912t0s.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Jul 2024 17:09:23 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:321488 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: pipcet@protonmail.com, eller.helmut@gmail.com, yantar92@posteo.net, >> emacs-devel@gnu.org >> Date: Sun, 07 Jul 2024 13:19:09 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> Balancing only changes the tree structure, without freeing nodes, AFA= IR. >> >> But that could be wrong. It's been a long time since I looked closer = at >> >> that tree. >> > >> > We free nodes in sweep_intervals. >>=20 >> I think that is handled in igc.c by intervals becoming unreachable. > > They will not become unreachable unless we unchain them, as is done in > sweep_intervals. Right? It starts with the root of a tree becoming unreachable, say a string's intervals become unreachable because the string is unreachable. By that, the root's children are unreachable and so on.