diff options
| author | Ken Brown | 2013-08-15 12:37:15 -0400 |
|---|---|---|
| committer | Ken Brown | 2013-08-15 12:37:15 -0400 |
| commit | 0fe73012cda7153f85cff32db8df442a0859fa5b (patch) | |
| tree | 27f37c1b0d7b4e3e9eba3df00bcf5ca9d72651c2 | |
| parent | 691a357f3afffc2f40a6f04dea072933dcdf8bc0 (diff) | |
| download | emacs-0fe73012cda7153f85cff32db8df442a0859fa5b.tar.gz emacs-0fe73012cda7153f85cff32db8df442a0859fa5b.zip | |
Revert last change to gmalloc.c; update some comments.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/emacs.c | 3 | ||||
| -rw-r--r-- | src/gmalloc.c | 9 |
5 files changed, 20 insertions, 16 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-08-15 Ken Brown <kbrown@cornell.edu> | ||
| 2 | |||
| 3 | * configure.ac (G_SLICE_ALWAYS_MALLOC): Update comment. | ||
| 4 | |||
| 1 | 2013-08-15 Glenn Morris <rgm@gnu.org> | 5 | 2013-08-15 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * make-dist: Do not distribute etc/refcards TeX intermediate files. | 7 | * make-dist: Do not distribute etc/refcards TeX intermediate files. |
diff --git a/configure.ac b/configure.ac index 61ea613e287..980c36f75c7 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -4340,14 +4340,16 @@ fi | |||
| 4340 | 4340 | ||
| 4341 | 4341 | ||
| 4342 | case $opsys in | 4342 | case $opsys in |
| 4343 | dnl Emacs supplies its own malloc, but glib (part of Gtk+) calls | 4343 | dnl Emacs supplies its own malloc, but glib calls posix_memalign, |
| 4344 | dnl memalign and on Cygwin, that becomes the Cygwin-supplied memalign. | 4344 | dnl and on Cygwin prior to version 1.7.24 that becomes the |
| 4345 | dnl As malloc is not the Cygwin malloc, the Cygwin memalign always | 4345 | dnl Cygwin-supplied posix_memalign. As malloc is not the Cygwin |
| 4346 | dnl returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ | 4346 | dnl malloc, the Cygwin posix_memalign always returns ENOSYS. A |
| 4347 | dnl workaround is to set G_SLICE=always-malloc. This is no longer | ||
| 4348 | dnl needed starting with cygwin-1.7.24, and it is no longer | ||
| 4349 | dnl effective starting with glib-2.36. */ | ||
| 4347 | cygwin) | 4350 | cygwin) |
| 4348 | AC_DEFINE(G_SLICE_ALWAYS_MALLOC, 1, [Define to set the | 4351 | AC_DEFINE(G_SLICE_ALWAYS_MALLOC, 1, [Define to set the |
| 4349 | G_SLICE environment variable to "always-malloc" at startup, if | 4352 | G_SLICE environment variable to "always-malloc" at startup.]) |
| 4350 | using GTK.]) | ||
| 4351 | ;; | 4353 | ;; |
| 4352 | 4354 | ||
| 4353 | hpux11) | 4355 | hpux11) |
diff --git a/src/ChangeLog b/src/ChangeLog index 46591eb1952..c12b32ebc71 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-08-15 Ken Brown <kbrown@cornell.edu> | ||
| 2 | |||
| 3 | * emacs.c (main): Update comment about G_SLICE_ALWAYS_MALLOC. | ||
| 4 | * gmalloc.c (memalign) [CYGWIN]: Revert last change; it's not | ||
| 5 | needed. | ||
| 6 | |||
| 1 | 2013-08-15 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-08-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Fix minor problems found by static checking. | 9 | Fix minor problems found by static checking. |
diff --git a/src/emacs.c b/src/emacs.c index 3c80d3ed753..05384145330 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -696,7 +696,8 @@ main (int argc, char **argv) | |||
| 696 | #endif | 696 | #endif |
| 697 | 697 | ||
| 698 | #ifdef G_SLICE_ALWAYS_MALLOC | 698 | #ifdef G_SLICE_ALWAYS_MALLOC |
| 699 | /* This is used by the Cygwin build. */ | 699 | /* This is used by the Cygwin build. It's not needed starting with |
| 700 | cygwin-1.7.24, but it doesn't do any harm. */ | ||
| 700 | xputenv ("G_SLICE=always-malloc"); | 701 | xputenv ("G_SLICE=always-malloc"); |
| 701 | #endif | 702 | #endif |
| 702 | 703 | ||
diff --git a/src/gmalloc.c b/src/gmalloc.c index 42ac0b03985..bc1d85ac5fb 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -1558,15 +1558,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. * | |||
| 1558 | 1558 | ||
| 1559 | void *(*__memalign_hook) (size_t size, size_t alignment); | 1559 | void *(*__memalign_hook) (size_t size, size_t alignment); |
| 1560 | 1560 | ||
| 1561 | /* As of version 1.7.24, Cygwin allows applications to provide their | ||
| 1562 | own posix_memalign (but not memalign). But posix_memalign as | ||
| 1563 | defined in this file calls memalign, so we have to rename the | ||
| 1564 | latter in order to make sure that posix_memalign calls Emacs's | ||
| 1565 | memalign. */ | ||
| 1566 | #ifdef CYGWIN | ||
| 1567 | #define memalign emacs_memalign | ||
| 1568 | #endif | ||
| 1569 | |||
| 1570 | void * | 1561 | void * |
| 1571 | memalign (size_t alignment, size_t size) | 1562 | memalign (size_t alignment, size_t size) |
| 1572 | { | 1563 | { |