mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
9cef82d680
commit
9594c84aac
@ -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"
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user