[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removal of unexec support from glibc malloc
From: |
Stefan Monnier |
Subject: |
Re: Removal of unexec support from glibc malloc |
Date: |
Sat, 23 Jan 2016 10:29:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> AFAICS, it happens due to the following:
> . We call regex.c functions, which reuse an allocated buffer,
> extending it (via realloc) as needed; that buffer gets frozen with
> malloc arena used during dumping
> . We delete the terminal frame used by temacs and free its resources
> . Not 100% sure, but I think we also release/reallocate some
> font-related stuff
> It's easy to catch all those cases by setting a breakpoint on realloc
> and free during startup.
I guess that's what happens in practice, but I'd be surprised if there
aren't more cases that can happen in theory. I'm thinking of memory
areas allocated for Elisp data which will *usually* stay live during the
lifetime of Emacs, but which could become free if we do things like
re-define some core datastructure (e.g. I'm thinking of things like
(setq global-map (copy-keymap global-map)).
Stefan
- Re: Removal of unexec support from glibc malloc, (continued)
- Re: Removal of unexec support from glibc malloc, Wolfgang Jenkner, 2016/01/19
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/19
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/23
- Re: Removal of unexec support from glibc malloc,
Stefan Monnier <=
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Richard Stallman, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/26
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/26
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/26
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/27
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/27
- Re: Removal of unexec support from glibc malloc, Richard Stallman, 2016/01/27
- Re: Removal of unexec support from glibc malloc, Richard Stallman, 2016/01/27