From 2ad120d98c3e2ee205504b920c78cf384a3452f7 Mon Sep 17 00:00:00 2001 From: "blythe%netscape.com" Date: Fri, 22 Feb 2002 02:55:08 +0000 Subject: [PATCH] Fix bug 127069. Reclaim .75 MB of VM on Win32. r=dp sr=brendan a=shaver git-svn-id: svn://10.0.0.236/trunk@115198 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/embedding/tests/winEmbed/makefile.win | 14 ++++++++++++++ mozilla/xpfe/bootstrap/makefile.win | 14 ++++++++++++++ 2 files changed, 28 insertions(+) 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 \