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: [PATCH] Force Glibc to free the memory freed Date: Wed, 03 Feb 2021 16:00:42 +0300 Message-ID: <824625557ce288b0cbc3edd66ff730afd479b511.camel@yandex.ru> References: <83k0rz21dw.fsf@gnu.org> <331805c74fc5d3d412dd2065030b11fa3343710d.camel@yandex.ru> <8a91fc16f93298bca1281b43d6821ae3621376dc.camel@yandex.ru> <7ffacc5f-fc0e-a5f8-104d-2c0ae8e06953@gmx.at> <3f4f8b3034e9f52f48ec520f2732b1687bb24dbc.camel@yandex.ru> <31608795-6155-c7c9-7d94-6024adb0a3b9@gmx.at> <09cc70f14e90f6b13b51b0536fae76e87dfe3f42.camel@yandex.ru> <55be0318-c907-bf9b-d644-d88abb816871@gmx.at> <35163027-a5b7-4a6c-6700-69d34fecf451@gmx.at> 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="18733"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3 Cc: carlos@redhat.com, fweimer@redhat.com, 45200@debbugs.gnu.org, dj@redhat.com To: martin rudalics , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 14:04:02 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 1l7HpC-0004ls-Tf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 14:04:02 +0100 Original-Received: from localhost ([::1]:55998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7HpB-0006h1-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 08:04:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7HmI-0004pa-LN for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 08:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7HmI-0004Kt-BT for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 08:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7HmI-00055r-9x for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 08:01: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: Wed, 03 Feb 2021 13:01: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.161235725219551 (code B ref 45200); Wed, 03 Feb 2021 13:01:02 +0000 Original-Received: (at 45200) by debbugs.gnu.org; 3 Feb 2021 13:00:52 +0000 Original-Received: from localhost ([127.0.0.1]:37227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7Hm8-00055H-FC for submit@debbugs.gnu.org; Wed, 03 Feb 2021 08:00:52 -0500 Original-Received: from forward101j.mail.yandex.net ([5.45.198.241]:47983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7Hm6-00054z-NT for 45200@debbugs.gnu.org; Wed, 03 Feb 2021 08:00:52 -0500 Original-Received: from sas1-c7095e9a6207.qloud-c.yandex.net (sas1-c7095e9a6207.qloud-c.yandex.net [IPv6:2a02:6b8:c14:3d85:0:640:c709:5e9a]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 875201BE1029; Wed, 3 Feb 2021 16:00:43 +0300 (MSK) Original-Received: from sas8-b61c542d7279.qloud-c.yandex.net (sas8-b61c542d7279.qloud-c.yandex.net [2a02:6b8:c1b:2912:0:640:b61c:542d]) by sas1-c7095e9a6207.qloud-c.yandex.net (mxback/Yandex) with ESMTP id mWzt915DhA-0gIiEbC5; Wed, 03 Feb 2021 16:00:43 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1612357243; bh=L7jxNh4gj/UFu/ZAI5A4NidewkWRtPJBK59wVleAeiE=; h=In-Reply-To:Cc:To:From:Subject:Message-ID:References:Date; b=jlQc4uzQqCgK8pbXK3eTp5PunXd5uSJkDpdMeZojXhhb83OzrIEmNsmaf2c6jY6kJ cs0B5lrRD230I84fu37zr8Ez4keuztVVxEia1WIBhePfqri34IvqbyeD0hq8/AI5P8 9VEDxxz/0J5JUMLz/wIkK3rsvtA20sagi8UA3mQs= Authentication-Results: sas1-c7095e9a6207.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by sas8-b61c542d7279.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id oJfaUpbwSG-0gn42acC; Wed, 03 Feb 2021 16:00:42 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) In-Reply-To: <35163027-a5b7-4a6c-6700-69d34fecf451@gmx.at> 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:199191 Archived-At: On Wed, 2021-02-03 at 13:56 +0100, martin rudalics wrote: >  > Yes. I think you misread this thread, the case where the problem first >  > came up is exactly running GC on idle. > > In your "Force Glibc to free the memory freed" patch I nowhere see that > you do that only when running GC on idle.  What am I missing? Haha, you seem to have jumped over explanations straight to discussing a discussion about an alternative implementation, even though the discussion has never happened :D Now I see what you mean, your idea is to run `malloc_trim(0)` only on idle. That sounds okay with me. Stefan, what do you think? Will it be okay if I implement a patch that runs `malloc_trim(0)` when Emacs is idle?