summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 78a465bf66..55f801ab32 100644
--- a/scope.c
+++ b/scope.c
@@ -140,7 +140,11 @@ Perl_markstack_grow(pTHX)
void
Perl_savestack_grow(pTHX)
{
+#ifdef STRESS_REALLOC
+ PL_savestack_max += SS_MAXPUSH;
+#else
PL_savestack_max = GROW(PL_savestack_max);
+#endif
/* Note that we allocate SS_MAXPUSH slots higher than ss_max
* so that SS_ADD_END(), SSGROW() etc can do a simper check */
Renew(PL_savestack, PL_savestack_max + SS_MAXPUSH, ANY);