summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-26 10:08:58 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 00:20:59 -0700
commitbe49fd9f9c5b1a5632988410e5c38c5558a9794c (patch)
tree5135922eb581bccb63d0172d73f40d9f591ccaef /pp_ctl.c
parent7d82c9ce7c2bfa3a12c9a63cdbf316426bfee222 (diff)
downloadperl-be49fd9f9c5b1a5632988410e5c38c5558a9794c.tar.gz
Define cv_forget_slab under PL_OP_SLAB_ALLOC
Instead of using #ifndef every time we call cv_forget_slab, just define it as a no-op under PL_OP_SLAB_ALLOC.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index c55afb14fc..f3c7692205 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3444,9 +3444,7 @@ S_doeval(pTHX_ int gimme, CV* outside, U32 seq, HV *hh)
PL_op = saveop;
if (yystatus != 3) {
if (PL_eval_root) {
-#ifndef PL_OP_SLAB_ALLOC
cv_forget_slab(evalcv);
-#endif
op_free(PL_eval_root);
PL_eval_root = NULL;
}
@@ -3489,9 +3487,7 @@ S_doeval(pTHX_ int gimme, CV* outside, U32 seq, HV *hh)
CopLINE_set(&PL_compiling, 0);
SAVEFREEOP(PL_eval_root);
-#ifndef PL_OP_SLAB_ALLOC
cv_forget_slab(evalcv);
-#endif
DEBUG_x(dump_eval());