bpo-34602: Avoid failures setting macOS stack resource limit (GH-13011) · python/cpython@883dfc6 (original) (raw)
3 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1 | +Avoid failures setting macOS stack resource limit with resource.setrlimit. | |
2 | +This reverts an earlier fix for bpo-18075 which forced a non-default stack | |
3 | +size when building the interpreter executable on macOS. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9542,12 +9542,6 @@ then | ||
9542 | 9542 | # -u libsys_s pulls in all symbols in libsys |
9543 | 9543 | Darwin/*) |
9544 | 9544 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
9545 | - | |
9546 | -# Issue #18075: the default maximum stack size (8MBytes) is too | |
9547 | -# small for the default recursion limit. Increase the stack size | |
9548 | -# to ensure that tests don't crash | |
9549 | - LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | |
9550 | - | |
9551 | 9545 | if test "$enable_framework" |
9552 | 9546 | then |
9553 | 9547 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2701,12 +2701,6 @@ then | ||
2701 | 2701 | # -u libsys_s pulls in all symbols in libsys |
2702 | 2702 | Darwin/*) |
2703 | 2703 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
2704 | - | |
2705 | -# Issue #18075: the default maximum stack size (8MBytes) is too | |
2706 | -# small for the default recursion limit. Increase the stack size | |
2707 | -# to ensure that tests don't crash | |
2708 | - LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | |
2709 | - | |
2710 | 2704 | if test "$enable_framework" |
2711 | 2705 | then |
2712 | 2706 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |