[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dumper problems and a possible solutions
From: |
Rich Felker |
Subject: |
Re: Dumper problems and a possible solutions |
Date: |
Wed, 25 Jun 2014 14:36:08 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Jun 25, 2014 at 10:30:22PM +0400, Dmitry Antipov wrote:
> On 06/25/2014 10:08 PM, Rich Felker wrote:
>
> >Are there such objects that need to be preserved across dumping?
>
> I don't know, and the worst thing is that we can't control over this.
Sure you can. If the lisp code doesn't reference such objects then
their existence of nonexistence is irrelevant to the new emacs
invocation after dumping.
> With my debug build, 'ldd src/temacs | wc -l' shows 112 external
> libraries. What if just one of these libraries uses malloc() to allocate
> an internal object in __attribute__((constructor)) function?
If these libraries are shared libraries, all of that state will be
lost during dumping and reinitialized when the library is loaded again
at runtime.
As long as we're using the existing dumper system, where the whole
data segment gets written out to a new executable file, I agree
there's such a problem for static linking. But if emacs switched to
the new system I proposed, where ONLY the lisp state were dumped to a
static array, then none of these libraries' state could be saved at
all, and thus there would be no danger.
Rich
- Re: Dumper problems and a possible solutions, (continued)
- Re: Dumper problems and a possible solutions, Rich Felker, 2014/06/26
- Re: Dumper problems and a possible solutions, Dmitry Antipov, 2014/06/26
- Re: Dumper problems and a possible solutions, Rich Felker, 2014/06/26
- Re: Dumper problems and a possible solutions, Eli Zaretskii, 2014/06/26
- Re: Dumper problems and a possible solutions, Rich Felker, 2014/06/26
- Re: Dumper problems and a possible solutions, Andreas Schwab, 2014/06/25
- Re: Dumper problems and a possible solutions, Samuel Bronson, 2014/06/25
- Re: Dumper problems and a possible solutions, Rich Felker, 2014/06/25
Re: Dumper problems and a possible solutions, Rich Felker, 2014/06/25
Re: Dumper problems and a possible solutions, Eli Zaretskii, 2014/06/25
Re: Dumper problems and a possible solutions, Stephen J. Turnbull, 2014/06/25
Re: Dumper problems and a possible solutions, Stefan Monnier, 2014/06/25