all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* w32/w64 Emacs and gmalloc()
@ 2014-02-28 16:39 Fabrice Popineau
  2014-02-28 17:21 ` Stefan Monnier
  2014-03-01  6:58 ` Eli Zaretskii
  0 siblings, 2 replies; 13+ messages in thread
From: Fabrice Popineau @ 2014-02-28 16:39 UTC (permalink / raw)
  To: emacs-devel


In case it is of interest for the future, I let you know that I have managed 
to build an Emacs for w32/w64 that runs without gmalloc.
The patch is far from clean enough to be presented, but the thing is running.

All the problem was about dumping the data. 
I did it in an array which is dumped with the executable.
This also removes the need of addsection.
It allows the resulting executable to be striped.

Once the preloaded data are dumped, they are not freed nor realloc'ed, or 
rather, the space they occupied is not collected. This is suboptimal, but 
there is no way around with the w32 api alone (no way that I know of without 
using your own allocator).
After the dumping, the normal emacs runs on the w32 heap management. 
Nowadays, the heap can be controlled in various ways, especially it can be 
turned into the so-called `low fragmentation heap'.
If anybody has a good benchmark that would be usable to tweak the parameters, 
I'll be glad to try it.

Any comments welcome on the pros/cons of this gmalloc removal for w32.

Best regards,

Fabrice




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-03-04  3:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 16:39 w32/w64 Emacs and gmalloc() Fabrice Popineau
2014-02-28 17:21 ` Stefan Monnier
2014-03-01  7:02   ` Eli Zaretskii
2014-03-01 15:50     ` Stefan Monnier
2014-03-01 16:00       ` Fabrice Popineau
2014-03-01 18:08         ` Eli Zaretskii
2014-03-01 20:12           ` Fabrice Popineau
2014-03-01 20:29             ` Eli Zaretskii
2014-03-01 18:05       ` Eli Zaretskii
2014-03-04  3:28         ` Stefan Monnier
2014-03-04  3:49           ` Eli Zaretskii
2014-03-01  6:58 ` Eli Zaretskii
2014-03-01  9:57   ` Fabrice Popineau

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.