summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-07-11 22:13:51 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:36 +0000
commit8ae997c5a3d6ec713ecf3e698d17ad6090022c7d (patch)
treec0840745b84031f7d9c47ce5a4a4006a4ec3bce3 /t
parentf29834c676387b28afd9f5c538f0a5e2c97abd36 (diff)
downloadperl-8ae997c5a3d6ec713ecf3e698d17ad6090022c7d.tar.gz
Eliminate ENTER/LEAVE from sub calls
Every sub call is wrapped in an ENTER/LEAVE pair, which uses the next free slot on the scope stack to save and then restore the old value of PL_savestack_ix. Instead, store the old value in a new field in the context structure, old_savestack_ix. This is quicker and simpler. Not that we keep the ENTER/LEAVE for XS sub calls, as they don't push a context frame, and so have nowhere else to remember PL_savestack_ix. As a side-effect, this commit fixes a TODO test in t/op/sub.t, which was related to dying while popping a context, then re-popping that context. For the second pop, the scopestack has since been overwritten and so too much was getting popped from the savestack. Since we no longer use the scopestack, it's no longer an issue.
Diffstat (limited to 't')
-rw-r--r--t/op/sub.t1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/op/sub.t b/t/op/sub.t
index eaae3de3af..367f325e56 100644
--- a/t/op/sub.t
+++ b/t/op/sub.t
@@ -326,7 +326,6 @@ pass("RT #126845: stub with prototype, then definition with attribute");
}
f();
- local $::TODO = "sub unwinding not safe yet";
::is($y, 7, "tie_exception");
}