diff options
| author | Eli Zaretskii | 2014-06-03 10:28:07 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-06-03 10:28:07 +0300 |
| commit | 89b362029282eff2b709e3a64e8e4ec3bc673676 (patch) | |
| tree | 8e76bb48f6720e0be50d0fa33054081c5be5d631 | |
| parent | 0031c9530d24fb25d8bdcadaf7457b7dee51da0c (diff) | |
| download | emacs-89b362029282eff2b709e3a64e8e4ec3bc673676.tar.gz emacs-89b362029282eff2b709e3a64e8e4ec3bc673676.zip | |
Define the size of dumped data for MS-Windows locally on w32heap.c.
configure.ac (C_HEAP_SWITCH): Remove.
src/w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use
HEAPSIZE; instead, define separate values for the 32- and 64-bit
builds.
src/Makefile.in (C_HEAP_SWITCH): Remove.
(ALL_CFLAGS): Don't use $(C_HEAP_SWITCH).
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 12 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 5 | ||||
| -rw-r--r-- | src/w32heap.c | 14 | ||||
| -rw-r--r-- | src/w32heap.h | 4 |
6 files changed, 25 insertions, 21 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (C_HEAP_SWITCH): Remove. | ||
| 4 | |||
| 1 | 2014-06-02 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-06-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Fix port to 32-bit AIX with xlc (Bug#17598). | 7 | Fix port to 32-bit AIX with xlc (Bug#17598). |
diff --git a/configure.ac b/configure.ac index 48eda74a061..967d2c44705 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -4835,18 +4835,6 @@ LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS" | |||
| 4835 | 4835 | ||
| 4836 | AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) | 4836 | AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) |
| 4837 | 4837 | ||
| 4838 | ## MinGW-specific compilation switch. | ||
| 4839 | C_HEAP_SWITCH= | ||
| 4840 | if test "${opsys}" = "mingw32"; then | ||
| 4841 | ## Preload heap size of temacs.exe in MB. | ||
| 4842 | case "$canonical" in | ||
| 4843 | x86_64-*-*) C_HEAP_SWITCH="-DHEAPSIZE=18" ;; | ||
| 4844 | *) C_HEAP_SWITCH="-DHEAPSIZE=12" ;; | ||
| 4845 | esac | ||
| 4846 | fi | ||
| 4847 | |||
| 4848 | AC_SUBST(C_HEAP_SWITCH) | ||
| 4849 | |||
| 4850 | ## Common for all window systems | 4838 | ## Common for all window systems |
| 4851 | if test "$window_system" != "none"; then | 4839 | if test "$window_system" != "none"; then |
| 4852 | AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.]) | 4840 | AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.]) |
diff --git a/src/ChangeLog b/src/ChangeLog index 0a31818070f..f0ea2885b8c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2014-06-03 Eli Zaretskii <eliz@gnu.org> | 1 | 2014-06-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use | ||
| 4 | HEAPSIZE; instead, define separate values for the 32- and 64-bit | ||
| 5 | builds. | ||
| 6 | |||
| 7 | * Makefile.in (C_HEAP_SWITCH): Remove. | ||
| 8 | (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH). | ||
| 9 | |||
| 3 | Fix MS-Windows build broken by menu changes on 2014-06-02. | 10 | Fix MS-Windows build broken by menu changes on 2014-06-02. |
| 4 | * w32menu.c (w32_menu_show): Fix a typo that broke compilation. | 11 | * w32menu.c (w32_menu_show): Fix a typo that broke compilation. |
| 5 | 12 | ||
diff --git a/src/Makefile.in b/src/Makefile.in index 697ff3a29f0..bda4623d7de 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -86,9 +86,6 @@ PNG_CFLAGS=@PNG_CFLAGS@ | |||
| 86 | ## something similar. This is normally set by configure. | 86 | ## something similar. This is normally set by configure. |
| 87 | C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ | 87 | C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ |
| 88 | 88 | ||
| 89 | ## Set Emacs dumped heap size for Windows NT | ||
| 90 | C_HEAP_SWITCH=@C_HEAP_SWITCH@ | ||
| 91 | |||
| 92 | ## Define LD_SWITCH_X_SITE to contain any special flags your loader | 89 | ## Define LD_SWITCH_X_SITE to contain any special flags your loader |
| 93 | ## may need to deal with X Windows. For instance, if your X libraries | 90 | ## may need to deal with X Windows. For instance, if your X libraries |
| 94 | ## aren't in a place that your loader can find on its own, you might | 91 | ## aren't in a place that your loader can find on its own, you might |
| @@ -322,7 +319,7 @@ MKDEPDIR=@MKDEPDIR@ | |||
| 322 | ## | 319 | ## |
| 323 | ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. | 320 | ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. |
| 324 | ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ | 321 | ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ |
| 325 | -I$(lib) -I$(srcdir)/../lib $(C_HEAP_SWITCH) \ | 322 | -I$(lib) -I$(srcdir)/../lib \ |
| 326 | $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ | 323 | $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ |
| 327 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ | 324 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ |
| 328 | $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ | 325 | $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ |
diff --git a/src/w32heap.c b/src/w32heap.c index bba236cc8d1..f08e1078b0a 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -108,7 +108,19 @@ typedef struct _RTL_HEAP_PARAMETERS { | |||
| 108 | be freed anyway), and we use a new private heap for all new | 108 | be freed anyway), and we use a new private heap for all new |
| 109 | allocations. */ | 109 | allocations. */ |
| 110 | 110 | ||
| 111 | unsigned char dumped_data[DUMPED_HEAP_SIZE]; | 111 | /* FIXME: Most of the space reserved for dumped_data[] is only used by |
| 112 | the 1st bootstrap-emacs.exe built while bootstrapping. Once the | ||
| 113 | preloaded Lisp files are byte-compiled, the next loadup uses less | ||
| 114 | than half of the size stated below. It would be nice to find a way | ||
| 115 | to build only the first bootstrap-emacs.exe with the large size, | ||
| 116 | and reset that to a lower value afterwards. */ | ||
| 117 | #ifdef _WIN64 | ||
| 118 | # define DUMPED_HEAP_SIZE (18*1024*1024) | ||
| 119 | #else | ||
| 120 | # define DUMPED_HEAP_SIZE (12*1024*1024) | ||
| 121 | #endif | ||
| 122 | |||
| 123 | static unsigned char dumped_data[DUMPED_HEAP_SIZE]; | ||
| 112 | 124 | ||
| 113 | /* Info for managing our preload heap, which is essentially a fixed size | 125 | /* Info for managing our preload heap, which is essentially a fixed size |
| 114 | data area in the executable. */ | 126 | data area in the executable. */ |
diff --git a/src/w32heap.h b/src/w32heap.h index 18b6c85c2de..787fe9ade5f 100644 --- a/src/w32heap.h +++ b/src/w32heap.h | |||
| @@ -28,10 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 28 | * Heap related stuff. | 28 | * Heap related stuff. |
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | #define DUMPED_HEAP_SIZE (HEAPSIZE*1024*1024) | ||
| 32 | |||
| 33 | extern unsigned char dumped_data[]; | ||
| 34 | |||
| 35 | extern unsigned char *get_data_start (void); | 31 | extern unsigned char *get_data_start (void); |
| 36 | extern unsigned char *get_data_end (void); | 32 | extern unsigned char *get_data_end (void); |
| 37 | extern size_t reserved_heap_size; | 33 | extern size_t reserved_heap_size; |