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 18:01:30 +0300 Message-ID: <49855294df24eec433160c90ebb5bf2054671c06.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> <83tuqt4331.fsf@gnu.org> 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="20764"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3 Cc: fweimer@redhat.com, dj@redhat.com, carlos@redhat.com, monnier@iro.umontreal.ca, 45200@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 16:03:58 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 1l7JhG-0005Gy-4M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 16:03:58 +0100 Original-Received: from localhost ([::1]:55980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7JhF-0003xc-5J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 10:03:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7JfO-0002BC-47 for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 10:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55261) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7JfN-00017z-R9 for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 10:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7JfN-0002rH-PD for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 10:02:01 -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 15:02:01 +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.161236451010959 (code B ref 45200); Wed, 03 Feb 2021 15:02:01 +0000 Original-Received: (at 45200) by debbugs.gnu.org; 3 Feb 2021 15:01:50 +0000 Original-Received: from localhost ([127.0.0.1]:38574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7JfC-0002qg-F8 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 10:01:50 -0500 Original-Received: from forward105p.mail.yandex.net ([77.88.28.108]:41995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7JfB-0002qT-JZ for 45200@debbugs.gnu.org; Wed, 03 Feb 2021 10:01:49 -0500 Original-Received: from iva6-d2c82ec8bc26.qloud-c.yandex.net (iva6-d2c82ec8bc26.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:610c:0:640:d2c8:2ec8]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 758BE4D41CF8; Wed, 3 Feb 2021 18:01:32 +0300 (MSK) Original-Received: from iva5-057a0d1fbbd8.qloud-c.yandex.net (iva5-057a0d1fbbd8.qloud-c.yandex.net [2a02:6b8:c0c:7f1c:0:640:57a:d1f]) by iva6-d2c82ec8bc26.qloud-c.yandex.net (mxback/Yandex) with ESMTP id b3DqxIQIm8-1VF0SMU4; Wed, 03 Feb 2021 18:01:32 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1612364492; bh=a8neNDqH4HPC/U0P9PAjGDuqs3bEbejcmqTl3PyLivI=; h=In-Reply-To:Cc:To:From:Subject:Message-ID:References:Date; b=Wn9Ci36dUrYCHlXGI3Rize5JLS8WOc08KJpr8m5106NGdqy9qs+AsLELlD4naCw0M uSQ0WL1Cixj8Oo71xFPjCOGCKX9Pq6xOEbLTMe0G/jIO50Nec4SXlBI/wNfuKpt4AE RyMlHu6Au0jIbiP32hqclCE2PdZ+MXeGueph+R4c= Authentication-Results: iva6-d2c82ec8bc26.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by iva5-057a0d1fbbd8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id yGWKXVmDqI-1VlWk3Aj; Wed, 03 Feb 2021 18:01:31 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) In-Reply-To: <83tuqt4331.fsf@gnu.org> 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:199198 Archived-At: On Wed, 2021-02-03 at 16:51 +0200, Eli Zaretskii wrote: > > From: Konstantin Kharlamov > > Date: Wed, 03 Feb 2021 12:49:47 +0300 > > Cc: carlos@redhat.com, fweimer@redhat.com, 45200@debbugs.gnu.org, > > dj@redhat.com > > > > Second, if Emacs indeed sees it's gonna allocate memory again right away, > > then it shouldn't have even freed the memory in the first place. > > You are not serious here, are you?  How could Emacs possibly know, at > the level that does GC, whether the Lisp program that currently runs > will need more memory in the future?  The program itself may know that > (and then it may not, if memory is allocated by some low-level > primitive), but GC itself?  If you think it can have powers for such > prophecy, we should probably use that to write a program to advise us > which shares to buy, and get rich -- fast. Yeah, you're right, never mind this text, I think I kinda misinterpreted two sentences I was answering to.