aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-06-03 10:28:07 +0300
committerEli Zaretskii2014-06-03 10:28:07 +0300
commit89b362029282eff2b709e3a64e8e4ec3bc673676 (patch)
tree8e76bb48f6720e0be50d0fa33054081c5be5d631 /src
parent0031c9530d24fb25d8bdcadaf7457b7dee51da0c (diff)
downloademacs-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).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/Makefile.in5
-rw-r--r--src/w32heap.c14
-rw-r--r--src/w32heap.h4
4 files changed, 21 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0a31818070f..f0ea2885b8c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12014-06-03 Eli Zaretskii <eliz@gnu.org> 12014-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.
87C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ 87C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
88 88
89## Set Emacs dumped heap size for Windows NT
90C_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.
324ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ 321ALL_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
111unsigned 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
123static 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
33extern unsigned char dumped_data[];
34
35extern unsigned char *get_data_start (void); 31extern unsigned char *get_data_start (void);
36extern unsigned char *get_data_end (void); 32extern unsigned char *get_data_end (void);
37extern size_t reserved_heap_size; 33extern size_t reserved_heap_size;