summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-25 22:41:21 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:19:18 +0000
commitd2af2719f1469dcb5f93ecdd69cd33aa6799b78a (patch)
treed4d68c273971d3b6a11af14d9a388c3703bce8f9 /pp_ctl.c
parent53d3542d62a6150413de482742e24f24b82112a8 (diff)
downloadperl-d2af2719f1469dcb5f93ecdd69cd33aa6799b78a.tar.gz
eliminate PERL_STACK_OVERFLOW_CHECK
This macro is defined as NOOP on all platforms except for MacOS classic, where it was added as a hook to allow for OSes that have a small CPU stack size. Since pp_entersub et al don't actually use the CPU stack, this hook looks misconceived from the beginning. So remove all uses of it in the core.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 84789180df..48654f420b 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2023,10 +2023,8 @@ PP(pp_dbstate)
PL_debug = 0;
SAVESTACK_POS();
CvDEPTH(cv)++;
- if (CvDEPTH(cv) >= 2) {
- PERL_STACK_OVERFLOW_CHECK();
+ if (CvDEPTH(cv) >= 2)
pad_push(CvPADLIST(cv), CvDEPTH(cv));
- }
PAD_SET_CUR_NOSAVE(CvPADLIST(cv), CvDEPTH(cv));
RETURNOP(CvSTART(cv));
}