From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#45200: Memory leaks: (garbage-collect) fails to reclaim memory Date: Mon, 25 Jan 2021 00:55:36 +0300 Message-ID: <6d4755efea07ca4f8f133e25f587d72abc1dcc63.camel@yandex.ru> References: <2a4f3f31f30db28387055821a8edf44fd1d66ea5.camel@yandex.ru> <5c5696670dea31a4647c901be1f87ddb1474f820.camel@yandex.ru> <83tur62iyl.fsf@gnu.org> <6b661d5f325efb3f49e83e2de093b1e271751bc0.camel@yandex.ru> <823c72fe5b0d4bfce3c758af4c3333c199d1e3df.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3 Cc: 45200@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 24 22:56:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l3nMg-0009Hz-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 22:56:10 +0100 Original-Received: from localhost ([::1]:43946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3nMe-0005TB-Si for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 16:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3nMY-0005T1-Eu for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 16:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3nMY-00014Q-7c for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 16:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3nMY-00007C-65 for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 16:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2021 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45200 X-GNU-PR-Package: emacs Original-Received: via spool by 45200-submit@debbugs.gnu.org id=B45200.1611525346415 (code B ref 45200); Sun, 24 Jan 2021 21:56:02 +0000 Original-Received: (at 45200) by debbugs.gnu.org; 24 Jan 2021 21:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:37444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3nMH-00006c-LU for submit@debbugs.gnu.org; Sun, 24 Jan 2021 16:55:45 -0500 Original-Received: from forward103o.mail.yandex.net ([37.140.190.177]:54828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3nMG-00006N-28 for 45200@debbugs.gnu.org; Sun, 24 Jan 2021 16:55:44 -0500 Original-Received: from iva8-e3673018e436.qloud-c.yandex.net (iva8-e3673018e436.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:da5:0:640:e367:3018]) by forward103o.mail.yandex.net (Yandex) with ESMTP id CCFFC5F80DEF; Mon, 25 Jan 2021 00:55:37 +0300 (MSK) Original-Received: from iva3-dd2bb2ff2b5f.qloud-c.yandex.net (iva3-dd2bb2ff2b5f.qloud-c.yandex.net [2a02:6b8:c0c:7611:0:640:dd2b:b2ff]) by iva8-e3673018e436.qloud-c.yandex.net (mxback/Yandex) with ESMTP id UzEkRZSlG8-tbGaAQQt; Mon, 25 Jan 2021 00:55:37 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1611525337; bh=szkGapR15KDm5BeDQE0N53iL4mi61X/TpzVUm8WfK5U=; h=In-Reply-To:Cc:To:From:Subject:Message-ID:References:Date; b=DuURmxZvOgelfi/SiJNYxhOLOSrWOX2bLohJVhwcMq8zwSx09CPeuSVPE8/5KYj2V hg/8duUkXNc15CvKPi6qUSbaOn0uQxiJbQxbIFCVLyqUKNlo2x7cqpe6pQcBnCxJfU /5Dwmszz530wAuyfFao9wD6FMjfsO505zTxn7I20= Authentication-Results: iva8-e3673018e436.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by iva3-dd2bb2ff2b5f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id dAbuR4a4Ic-taIKAAnm; Mon, 25 Jan 2021 00:55:36 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198534 Archived-At: On Sun, 2021-01-24 at 16:41 -0500, Stefan Monnier wrote: > > Why unrealistic? To me the situation is pretty clear: I needed 200M, but I > > don't > > need them anymore, so I want them released. What's unrealistic about that? > > What can I say: it's not realistic and I already gave you two technical > reasons why that is. What 2 reasons? The reason I had the paragraph below is that I was sure I answered to everything you said, so I have no idea what you mean. > > If that was your point about that "maybe the 200M of memory will be > > needed again", then as I said, yeah, maybe, maybe not — unless Glibc > > has a prophet module built-in, it can't know, so it should not behave > > as if it does. > > Maybe so.  But to the extent that you consciously decided it's OK for > Emacs to use 200MB at time-step A, then you basically lost the "moral > authority" to say that it's not OK for Emacs to still uses up 200MB at > time-step B. Okay, so, my point you replied to was that I allocated 200M when I needed them, and I am releasing them because I no longer need them. You are opposing that with I "lost the moral authority to say that it's not OK for Emacs to still uses up 200MB". "moral"…? Seriously? ☺ Was that some code of conduct I violated by allocating 200M, or what does mean "I lost moral authority"? Is that a technical reason you referred to? ☺