summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-06-29 12:02:18 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:33 +0000
commit41f96e1a89a5842483b2a12424693a876f5b57c0 (patch)
tree3f72bd21072b975b798f6214146e30f4e94cdcd3 /pp_sort.c
parent39de75fd8bd047dccbf78312638f43b5e8fe3d5c (diff)
downloadperl-41f96e1a89a5842483b2a12424693a876f5b57c0.tar.gz
eliminate cx->blk_sub.oldcomppad
In the CXt_SUB sub-struct of the context struct, there is a field called oldcomppad. Despite the "old" in its name, this field actually stores the value of PL_comppad of the new sub, not of the caller. It's only use currently is in POPSUB() when abandoning a reified @_, to locate PL_curpad[0] of the current sub in order to stick a new empty AV there. This is a relatively rare occurrence, and the pad slot can be found (slightly less efficiently) from the saved CV and its depth.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pp_sort.c b/pp_sort.c
index ff76478758..73f520d7d4 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1688,7 +1688,6 @@ PP(pp_sort)
cx->blk_sub.savearray = GvAV(PL_defgv);
GvAV(PL_defgv) = MUTABLE_AV(SvREFCNT_inc_simple(av));
- CX_CURPAD_SAVE(cx->blk_sub);
cx->blk_sub.argarray = av;
}