summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-16 23:44:11 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-17 16:45:21 -0700
commitee62b5872fcaa0eebd452a940ede4d506653bd81 (patch)
tree28230c1fe442627eca23eda9cb7c72cb512811b6
parentf28d8eb1c114895944de593e05ba8271fe1b4fdf (diff)
downloadperl-ee62b5872fcaa0eebd452a940ede4d506653bd81.tar.gz
pp_ctl.c:pp_dbstate: Don’t adjust CvDEPTH for XSUBs
Commit c127bd3aaa5c5 made XS DB::DB subs work. Before that, pp_dbstate assumed DB::DB was written it perl. It adjusts CvDEPTH when calling the XSUB, which serves no purpose. It was presumably just copied from the pure-Perl-calling code. pp_entersub does- n’t do this.
-rw-r--r--pp_ctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 55d9c8901a..b9b26e5b8a 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1973,10 +1973,8 @@ PP(pp_dbstate)
SPAGAIN;
if (CvISXSUB(cv)) {
- CvDEPTH(cv)++;
PUSHMARK(SP);
(void)(*CvXSUB(cv))(aTHX_ cv);
- CvDEPTH(cv)--;
FREETMPS;
LEAVE;
return NORMAL;