This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: delete boilerplate for empty sections
[perl5.git] / scope.c
diff --git a/scope.c b/scope.c
index a7c17e8..59cea3b 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -55,6 +55,10 @@ Perl_stack_grow(pTHX_ SV **sp, SV **p, SSize_t n)
         Perl_croak(aTHX_ "Out of memory during stack extend");
 
     av_extend(PL_curstack, current + n + extra);
+#ifdef DEBUGGING
+        PL_curstackinfo->si_stack_hwm = current + n + extra;
+#endif
+
     return PL_stack_sp;
 }