diff --git a/mozilla/embedding/tests/winEmbed/makefile.win b/mozilla/embedding/tests/winEmbed/makefile.win index b82edb02d1f..fbc75665bed 100644 --- a/mozilla/embedding/tests/winEmbed/makefile.win +++ b/mozilla/embedding/tests/winEmbed/makefile.win @@ -44,6 +44,20 @@ REQUIRES = xpcom \ PROGRAM = .\$(OBJDIR)\$(MODULE).exe RESFILE = $(MODULE).res + +# +# 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)\winEmbed.obj \ .\$(OBJDIR)\WebBrowserChrome.obj \ diff --git a/mozilla/xpfe/bootstrap/makefile.win b/mozilla/xpfe/bootstrap/makefile.win index 5f47727bd34..1d1f0a5deb7 100644 --- a/mozilla/xpfe/bootstrap/makefile.win +++ b/mozilla/xpfe/bootstrap/makefile.win @@ -97,6 +97,20 @@ LFLAGS= $(LFLAGS) /subsystem:console LFLAGS= $(LFLAGS) /subsystem:windows !endif + +# +# 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 + + # These are the libraries we need to link with to create the exe LLIBS= \ $(DIST)\lib\xpcom.lib \