[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117246: Define the size of dumped data for MS-Windo
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r117246: Define the size of dumped data for MS-Windows locally on w32heap.c. |
Date: |
Tue, 03 Jun 2014 07:29:38 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117246
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2014-06-03 10:28:07 +0300
message:
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).
modified:
ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1538
configure.ac
configure.in-20091113204419-o5vbwnq5f7feedwu-783
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/Makefile.in makefile.in-20091113204419-o5vbwnq5f7feedwu-631
src/w32heap.c w32heap.c-20091113204419-o5vbwnq5f7feedwu-810
src/w32heap.h w32heap.h-20091113204419-o5vbwnq5f7feedwu-811
=== modified file 'ChangeLog'
--- a/ChangeLog 2014-06-02 00:18:22 +0000
+++ b/ChangeLog 2014-06-03 07:28:07 +0000
@@ -1,3 +1,7 @@
+2014-06-03 Eli Zaretskii <address@hidden>
+
+ * configure.ac (C_HEAP_SWITCH): Remove.
+
2014-06-02 Paul Eggert <address@hidden>
Fix port to 32-bit AIX with xlc (Bug#17598).
=== modified file 'configure.ac'
--- a/configure.ac 2014-06-02 00:18:22 +0000
+++ b/configure.ac 2014-06-03 07:28:07 +0000
@@ -4835,18 +4835,6 @@
AC_SUBST(LD_SWITCH_SYSTEM_TEMACS)
-## MinGW-specific compilation switch.
-C_HEAP_SWITCH=
-if test "${opsys}" = "mingw32"; then
- ## Preload heap size of temacs.exe in MB.
- case "$canonical" in
- x86_64-*-*) C_HEAP_SWITCH="-DHEAPSIZE=18" ;;
- *) C_HEAP_SWITCH="-DHEAPSIZE=12" ;;
- esac
-fi
-
-AC_SUBST(C_HEAP_SWITCH)
-
## Common for all window systems
if test "$window_system" != "none"; then
AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.])
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-06-03 06:51:18 +0000
+++ b/src/ChangeLog 2014-06-03 07:28:07 +0000
@@ -1,5 +1,12 @@
2014-06-03 Eli Zaretskii <address@hidden>
+ * w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use
+ HEAPSIZE; instead, define separate values for the 32- and 64-bit
+ builds.
+
+ * Makefile.in (C_HEAP_SWITCH): Remove.
+ (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH).
+
Fix MS-Windows build broken by menu changes on 2014-06-02.
* w32menu.c (w32_menu_show): Fix a typo that broke compilation.
=== modified file 'src/Makefile.in'
--- a/src/Makefile.in 2014-06-02 00:18:22 +0000
+++ b/src/Makefile.in 2014-06-03 07:28:07 +0000
@@ -86,9 +86,6 @@
## something similar. This is normally set by configure.
address@hidden@
-## Set Emacs dumped heap size for Windows NT
address@hidden@
-
## Define LD_SWITCH_X_SITE to contain any special flags your loader
## may need to deal with X Windows. For instance, if your X libraries
## aren't in a place that your loader can find on its own, you might
@@ -322,7 +319,7 @@
##
## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
- -I$(lib) -I$(srcdir)/../lib $(C_HEAP_SWITCH) \
+ -I$(lib) -I$(srcdir)/../lib \
$(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
$(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
$(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
=== modified file 'src/w32heap.c'
--- a/src/w32heap.c 2014-06-02 17:19:19 +0000
+++ b/src/w32heap.c 2014-06-03 07:28:07 +0000
@@ -108,7 +108,19 @@
be freed anyway), and we use a new private heap for all new
allocations. */
-unsigned char dumped_data[DUMPED_HEAP_SIZE];
+/* FIXME: Most of the space reserved for dumped_data[] is only used by
+ the 1st bootstrap-emacs.exe built while bootstrapping. Once the
+ preloaded Lisp files are byte-compiled, the next loadup uses less
+ than half of the size stated below. It would be nice to find a way
+ to build only the first bootstrap-emacs.exe with the large size,
+ and reset that to a lower value afterwards. */
+#ifdef _WIN64
+# define DUMPED_HEAP_SIZE (18*1024*1024)
+#else
+# define DUMPED_HEAP_SIZE (12*1024*1024)
+#endif
+
+static unsigned char dumped_data[DUMPED_HEAP_SIZE];
/* Info for managing our preload heap, which is essentially a fixed size
data area in the executable. */
=== modified file 'src/w32heap.h'
--- a/src/w32heap.h 2014-05-29 15:21:08 +0000
+++ b/src/w32heap.h 2014-06-03 07:28:07 +0000
@@ -28,10 +28,6 @@
* Heap related stuff.
*/
-#define DUMPED_HEAP_SIZE (HEAPSIZE*1024*1024)
-
-extern unsigned char dumped_data[];
-
extern unsigned char *get_data_start (void);
extern unsigned char *get_data_end (void);
extern size_t reserved_heap_size;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117246: Define the size of dumped data for MS-Windows locally on w32heap.c.,
Eli Zaretskii <=