all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Daniel Colascione" <dancol@dancol.org>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: 38492@debbugs.gnu.org, kevin.legouguec@gmail.com
Subject: bug#38492: 27.0.50; Warn pdumper users when pure space has been overflowed
Date: Sun, 15 Dec 2019 12:41:06 -0800	[thread overview]
Message-ID: <9bf76c35d7c57f0b181615614147d1f8.squirrel@dancol.org> (raw)
In-Reply-To: <jwvmubtmj88.fsf-monnier+emacs@gnu.org>

>>> > We should probably consider just removing the pure space mechanism at
>>> > some point.
>>> Does this mean you agree with removing the warning in startup.el
>>> about overflowed pure space?
>> Yes.
>
> Why?
>
> This warning was placed because we needed to disable GC in dumps that
> had overflown the purespace, so the dumped Emacs was not
> fully functional.
>
> I see that with the current pdump we don't disable GC in dumps that
> overflew the purespace.  Why is that?
>
> IIRC, the problem with running GC in an Emacs with overflown purespace
> is that overflowing the purespace created pointers from the purespace to
> the heap and those aren't traced by the GC so it resulted in core dumps.
>
> I can't exactly remember the cases where this happened, but I can't see
> why the pdumper would be less affected than the unexec code.
>
> I see that the code has a slightly different explanation:
>
>     /* Can't GC if pure storage overflowed because we can't determine
>        if something is a pure object or not.  */
>     garbage_collection_inhibited++;
>
> but that comment similarly seems to apply to pdump just as much as it
> applies to unexec.

In a pdumped Emacs, we don't have anything in purespace on pdumper load,
so we can GC normally. We do disable GC during dump operation itself if we
overflow, true, and we shouldn't do that, but this problem affects only
the build.

We should just make sure Vpurify_flag is off if we're going to make a
pdumper image.






  reply	other threads:[~2019-12-15 20:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-04 19:02 bug#38492: 27.0.50; Warn pdumper users when pure space has been overflowed Kévin Le Gouguec
2019-12-06  8:12 ` Eli Zaretskii
2019-12-06 16:37   ` Kévin Le Gouguec
2019-12-06 16:49     ` Daniel Colascione
2019-12-06 18:51       ` Eli Zaretskii
2019-12-06 19:02         ` dancol
2019-12-07  4:48           ` Richard Stallman
2019-12-07  7:59             ` Eli Zaretskii
2019-12-15 20:41             ` Stefan Monnier
2019-12-15 20:45               ` Daniel Colascione
2019-12-17  3:09               ` Richard Stallman
2019-12-14 11:42           ` Eli Zaretskii
2019-12-14 14:09             ` Kévin Le Gouguec
2019-12-15 20:33           ` Stefan Monnier
2019-12-15 20:41             ` Daniel Colascione [this message]
2019-12-17  3:09             ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9bf76c35d7c57f0b181615614147d1f8.squirrel@dancol.org \
    --to=dancol@dancol.org \
    --cc=38492@debbugs.gnu.org \
    --cc=kevin.legouguec@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.