From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#54698: non-recursive GC marking [PATCH] Date: Mon, 4 Apr 2022 13:57:54 +0200 Message-ID: References: <5A577100-75CE-4C9E-A7DA-02B917662AF5@acm.org> <8735itglid.fsf@gnus.org> <8527E407-8190-4574-B8D5-BE68220AE663@acm.org> <834k39f58b.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38674"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 54698@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 04 13:59:28 2022 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 1nbLMm-0009vY-D7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Apr 2022 13:59:28 +0200 Original-Received: from localhost ([::1]:53302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbLMl-0007mt-AP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Apr 2022 07:59:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbLMN-0007kB-Ig for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 07:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbLMM-0001KM-4L for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 07:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbLMM-0008Lu-2B for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 07:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Apr 2022 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54698 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54698-submit@debbugs.gnu.org id=B54698.164907348332033 (code B ref 54698); Mon, 04 Apr 2022 11:59:02 +0000 Original-Received: (at 54698) by debbugs.gnu.org; 4 Apr 2022 11:58:03 +0000 Original-Received: from localhost ([127.0.0.1]:50700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbLLP-0008Ka-Gf for submit@debbugs.gnu.org; Mon, 04 Apr 2022 07:58:03 -0400 Original-Received: from mail18c50.megamailservers.eu ([91.136.10.28]:54148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbLLM-0008K8-Fl for 54698@debbugs.gnu.org; Mon, 04 Apr 2022 07:58:01 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1649073477; bh=r6GkfQs+uk8XDaiFO0rD8xtLht1ebW+SdDqP472aZ8I=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=oxZM6GiE6CcqVMMUbjZJvdbcIzC661AFYIDS6j6aScXcX4p+FGI7Bv4yih+8CaT8S BDI9tG0JIBHjwlJt2StoNqKrTnDmysW8UNx4ViDNDqY4xFsHDMxk9ySfdUzffCkIcp GjjylB0ICEETV17vqA6Tggq5uBCZn2hcauJjc8z8= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail18c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 234BvtiY020843; Mon, 4 Apr 2022 11:57:56 +0000 In-Reply-To: <834k39f58b.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-CTCH-RefID: str=0001.0A742F1F.624ADD45.007F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-Origin-Country: SE 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:229405 Archived-At: 4 apr. 2022 kl. 13.38 skrev Eli Zaretskii : > What happens with data that GC relocates, like when it relocates and > compacts string data? If the relocated data is allocated on the heap > after the simulated stack, the original string data, which is now free > memory, will be "trapped" behind the simulated stack, and 'free' will > be unable to return it to the OS. This could make the memory > footprint of Emacs larger than it could be. That effect is unlikely to be visible. I don't think a single (and not = very big) allocation would contribute materially to heap fragmentation, = given the amount of allocation being made all the time. (But prove me = wrong!) > Was this aspect considered and audited/tested? Do you have a test case?