diff options
author | Jan Dubois <jand@activestate.com> | 2010-11-29 17:10:02 -0800 |
---|---|---|
committer | Jan Dubois <jand@activestate.com> | 2010-11-29 17:11:28 -0800 |
commit | 56a86867b86f603e24bea0daab37d0f2a978e03c (patch) | |
tree | 1286b2b9fa70f6a357c5947cda61d538f67ac761 /win32 | |
parent | ceac08d31e451a6c38e90b0438d90faa777ca77c (diff) | |
download | perl-56a86867b86f603e24bea0daab37d0f2a978e03c.tar.gz |
Use default stack size on Windows
Perl used to request 16MB of stack instead of the default 1MB (when
compiling with VC++). I believe this was done to accomodate the
recursive nature of the regex engine, which is no longer a concern
since 5.10. The requested stack size will be reserved for each
thread created by the process, not just for the main thread.
Note also that we don't explicitly specify the stack size when
compiling with GCC on Windows (MinGW), which reserves a stack size of
2MB by default.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile | 4 | ||||
-rw-r--r-- | win32/makefile.mk | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/win32/Makefile b/win32/Makefile index 298987193d..248c6852c0 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -1004,14 +1004,14 @@ perlmainst$(o) : perlmainst.c $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) - $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \ + $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \ $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) $(EMBED_EXE_MANI) copy $(PERLEXE) $(WPERLEXE) $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES) - $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \ + $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \ @Extensions_static $(PERLSTATICLIB) /PDB:NONE \ $(LIBFILES) $(PERLEXEST_OBJ) $(SETARGV_OBJ) $(PERLEXE_RES) $(EMBED_EXE_MANI) diff --git a/win32/makefile.mk b/win32/makefile.mk index 0c68318e73..fe845c255c 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -1382,7 +1382,7 @@ $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \ $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) .ELSE - $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(BLINK_FLAGS) \ + $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \ $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) $(EMBED_EXE_MANI) .ENDIF @@ -1401,7 +1401,7 @@ $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(PERLEXEST_OBJ) \ $(PERLEXE_RES) $(LKPOST)) .ELSE - $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(BLINK_FLAGS) \ + $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \ @Extensions_static $(PERLSTATICLIB) /PDB:NONE \ $(LIBFILES) $(PERLEXEST_OBJ) $(SETARGV_OBJ) $(PERLEXE_RES) $(EMBED_EXE_MANI) |