[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9273: 23.3; malloc initialization should (sometimes) happen at runti
From: |
Stefan Monnier |
Subject: |
bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime |
Date: |
Sat, 13 Aug 2011 15:19:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> Probably. That would keep me from having to get involved in the details of
> how _heapinfo works, and it would probably be less error prone. So I would
> do something like the following:
> 1. Temporarily restore the pre-dump malloc state.
> 2. Call xrealloc, getting storage of the new size in the old heap.
> 3. Copy the contents into a temporary buffer, and then free the recently
> allocated storage in the old heap.
> 4. Restore the malloc state, call malloc, and then copy the contents of the
> temporary buffer into the just-acquired storage in the new heap.
> Is that what you had in mind?
No, I meant, during initialization of Emacs, make sure we get the old
_heapinfo state, so that malloc/realloc/... just works.
Stefan
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, (continued)
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/12
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Eli Zaretskii, 2011/08/12
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/12
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/12
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Eli Zaretskii, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Eli Zaretskii, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Stefan Monnier, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime,
Stefan Monnier <=
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/13
- bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, Ken Brown, 2011/08/16
bug#9273: 23.3; malloc initialization should (sometimes) happen at runtime, grischka, 2011/08/12