Fix bug 127069

Default heap size of exes
This is the second patch for this bug and only affects gmake win32 builds
and test embed exes
r=dp, sr=scc, a=asa
This commit is contained in:
blythe%netscape.com 2002-04-02 22:20:57 +00:00
parent 9cef82d680
commit 9594c84aac
4 changed files with 52 additions and 1 deletions

View File

@ -88,6 +88,18 @@ OS_LIBS += \
LOCAL_INCLUDES = -I$(srcdir)/components
#
# Control the default heap size.
# This is the heap returned by GetProcessHeap().
# As we use the CRT heap, the default size is too large and wastes VM.
#
# The default heap size is 1MB on Win32.
# The heap will grow if need be.
#
# Set it to 256k. See bug 127069.
#
LDFLAGS += /HEAP:0x40000
include $(topsrcdir)/config/rules.mk
CXXFLAGS += /D "_AFXDLL" /D "USE_SINGLE_SIGN_ON"

View File

@ -55,6 +55,19 @@ RESFILE = $(MODULE).res
LINCS = -Icomponents \
$(NULL)
#
# Control the default heap size.
# This is the heap returned by GetProcessHeap().
# As we use the CRT heap, the default size is too large and wastes VM.
#
# The default heap size is 1MB on Win32.
# The heap will grow if need be.
#
# Set it to 256k. See bug 127069.
#
LLFLAGS=$(LLFLAGS) /HEAP:0x40000
OBJS = \
.\$(OBJDIR)\MfcEmbed.obj \
.\$(OBJDIR)\BrowserFrm.obj \
@ -84,7 +97,7 @@ LLIBS= \
$(NULL)
LCFLAGS = /D "_AFXDLL" /D "USE_SINGLE_SIGN_ON"
LLFLAGS = -SUBSYSTEM:windows
LLFLAGS = $(LLFLAGS) -SUBSYSTEM:windows
include <$(DEPTH)\config\rules.mak>

View File

@ -67,4 +67,16 @@ OS_LIBS += \
version.lib \
$(NULL)
#
# Control the default heap size.
# This is the heap returned by GetProcessHeap().
# As we use the CRT heap, the default size is too large and wastes VM.
#
# The default heap size is 1MB on Win32.
# The heap will grow if need be.
#
# Set it to 256k. See bug 127069.
#
LDFLAGS += /HEAP:0x40000
include $(topsrcdir)/config/rules.mk

View File

@ -229,6 +229,20 @@ LDFLAGS += /SUBSYSTEM:WINDOWS
endif
endif
ifeq ($(OS_ARCH),WINNT)
#
# Control the default heap size.
# This is the heap returned by GetProcessHeap().
# As we use the CRT heap, the default size is too large and wastes VM.
#
# The default heap size is 1MB on Win32.
# The heap will grow if need be.
#
# Set it to 256k. See bug 127069.
#
LDFLAGS += /HEAP:0x40000
endif
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
LOCAL_INCLUDES = -I$(srcdir)