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 19:08:45 +0200 Message-ID: References: <878qyeffjh.fsf@localhost> <8734olzlws.fsf@gmail.com> <867cdx32e3.fsf@gnu.org> <864j912t0s.fsf@gnu.org> <86zfqt1cxa.fsf@gnu.org> <86y16d1aik.fsf@gnu.org> <86tth119bs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24490"; 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 19:09:21 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 1sQVO5-0006Al-Oz for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 19:09:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQVNc-0005Qi-Qt; Sun, 07 Jul 2024 13:08:52 -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 1sQVNb-0005Qa-0U for emacs-devel@gnu.org; Sun, 07 Jul 2024 13:08:51 -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 1sQVNZ-0001i7-Bs; Sun, 07 Jul 2024 13:08:50 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-58b966b41fbso4007125a12.1; Sun, 07 Jul 2024 10:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720372127; x=1720976927; 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=rYGMW3TtosTLveo90RlTlGFW/OG+qRzefNHxXLJEa6A=; b=I1r+UYCbWK8jsHWkxVNtFTbjdcC5Dse+zod3yggtIjoCjSRTqG05TcdPLLgxIA37Y1 LQGT31BeGyWAgkUtI8gz7rp7TUchZ/XfkmZiLWQeexQjh954GLAbgJRgiu5qO/yFao8e OQj+oGW4IMypHCIE9ha2DHd0ojVRySWomjMeaE2wprKQunr56NDhIVdNdoouBMJoDcnH wkHU/hoI/le+WWw6AotDGEAYraSWUviyzI2QHGq1278siIyGhdimRJWRFy3iELAcPmuY yJasYYVEUNRoF3y72vme9AYPGqpuZaB+5Uw5gYumptwMNGso8og9oypTZcXMKLo4EpXp hbuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720372127; x=1720976927; 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=rYGMW3TtosTLveo90RlTlGFW/OG+qRzefNHxXLJEa6A=; b=nTlG/EOAW+zprr/Q40rI0vabwiS2J7EkkKAXb/lgjoEQGH7ovYZIsg3N/pjTjyaZ7U QBmtl6om46fJiU7scZZcZJwR0yRJy2S0u36Rma56dVTzUCNhIMWfv2HP8bSVDhEI2t+x 0Y229u3iDHj8XldYmMVHb69qVBHSzdxefescV4G59Wstvip8hdNj+xt/obVuLoQSzexB 5pO7YZTt5Hd7ZVKUduvHzkx1LHPpYf/Mh8gZJt+qF78+8hHxVMGVrDSCGy/iR6RHks8y lO7y9KZANmhOTVIG3nIwdrqjdCMCg2hkk5JCB9g6LBUdfF5KBAc2DCAp8wCygZ2u/O4G 6zjQ== X-Forwarded-Encrypted: i=1; AJvYcCUo9LrfkDsSxw7D5uaTL7vws3o1oBnu7L3/z4u/s1JG31mtluNVUmIdH1+pLu91wDqp30N8GyyvX13067vmo7UPuDIU X-Gm-Message-State: AOJu0Yw3FL6ZpV/RK+6uAnuBgfQxhH7FoB1gp1E/SRZDqoX5VdHhmpe1 5Dcd9ha/auni0hla3aHV0ji10m8y0mWTloawjACmUMYSGMU4d5SbE7/EIg== X-Google-Smtp-Source: AGHT+IEMixpXSpgW22Ki+2KSzEPkvwj3aJZh52swNOw1E88IwZOOzG7r2gpHTjVMXyfvOSNokEeA5g== X-Received: by 2002:a05:6402:2710:b0:57d:5ac:7426 with SMTP id 4fb4d7f45d1cf-58e5916f6b5mr7108963a12.9.1720372126833; Sun, 07 Jul 2024 10:08:46 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a778.dip0.t-ipconnect.de. [79.227.167.120]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58f4114a9ffsm3424424a12.12.2024.07.07.10.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jul 2024 10:08:46 -0700 (PDT) In-Reply-To: <86tth119bs.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Jul 2024 19:00:07 +0300") 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:321507 Archived-At: Eli Zaretskii writes: > But does igc know that an interval is no longer needed? How does it > know that when sweep_intervals in the old GC needed to do that > explicitly in C? It's kind of mark-sweep vs. copying collector algorithms. The mark phase of mark-sweep marks all objects reachable from roots, then the sweep phase frees what's not marked. A copying collector copies every object reachable from roots. At the end, what has not been copied is implicitly unreachable. MPS is a copying collection, with some additional complications, like ambiguous references (-> mostly-copying), and incrementality (-> barriers), but the principle is still the same.