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: Hash table GC Date: Mon, 14 Oct 2024 17:00:18 +0300 Message-ID: <86ttdess25.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="667"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 14 16:01:10 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 1t0LdF-000AWH-6y for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Oct 2024 16:01:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0Lcn-0003hG-Mn; Mon, 14 Oct 2024 10:00:41 -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 1t0Lch-0003bL-EA for emacs-devel@gnu.org; Mon, 14 Oct 2024 10:00:38 -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 1t0Lcf-0006rs-Vg; Mon, 14 Oct 2024 10:00:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=oCJ5Cx/fiKeSyje9vr7sl4oJlqX9oszrUUkaWzBvzjI=; b=FOD6ujGbRoOX kJLKiLLZkIRz5KLUkvllN57XjP+fP8U3zlhjIPQ7gqPKWXHQgH6U2qfWITjS0rYb22rLcImYH3YUT Iw6/TmPhCpG792KdbBeHMLkstNhs8LzNJz0neBHsv/nq8GTEIhZSX1ewBzrNCmxGrj0aQeJXTHbax /bB59E0PAjeAei5qMTEte7+IatK2/qn0TXSJLBkfaNmzIePDW3uLeScdpk4ypI3JKVNIlo8cBVpXk shLWbukSjibqU/HnZTw4aVxqDtLnzKK6VUyW84mhzWd1kXEw/S/EJvwoVk2wITDrmhiqd+IWyLDUj MQAMYahNxt59okLzTLjQCA==; In-Reply-To: (message from Anand Tamariya on Mon, 14 Oct 2024 10:02:24 +0530) 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:324568 Archived-At: > From: Anand Tamariya > Date: Mon, 14 Oct 2024 10:02:24 +0530 > > If I've created a hash table with :weakness nil, how do I release it for GC when it is no longer needed? Why are you asking specifically about hash-tables? AFAIK, they are not different from any other Lisp object in this regard. Weakness affects GC of the keys and values, not of the table itself, AFAIU.