summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-29 13:18:06 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 22:20:12 -0700
commit9963ffa20596275dc70831862ce25471cf69f9ed (patch)
tree4b96c287d122a72564e1c480444d6ef4ac5d92fc /op.c
parent4a273b91c8e47ab37c6dd310072403d4fe2d0fb9 (diff)
downloadperl-9963ffa20596275dc70831862ce25471cf69f9ed.tar.gz
op.c: Remove unnecessary variable
This is left over from when I had the partially-filled slab at the end of the chain, instead of second (which was never committed).
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/op.c b/op.c
index 2281ddfe70..e708a9920b 100644
--- a/op.c
+++ b/op.c
@@ -378,8 +378,6 @@ Perl_Slab_Alloc(pTHX_ size_t sz)
if ((space = DIFF(&slab2->opslab_slots, slab2->opslab_first)) < sz) {
/* Remaining space is too small. */
- OPSLAB *newslab;
-
/* If we can fit a BASEOP, add it to the free chain, so as not
to waste it. */
if (space >= SIZE_TO_PSIZE(sizeof(OP)) + OPSLOT_HEADER_P) {
@@ -393,9 +391,9 @@ Perl_Slab_Alloc(pTHX_ size_t sz)
/* Create a new slab. Make this one twice as big. */
slot = slab2->opslab_first;
while (slot->opslot_next) slot = slot->opslot_next;
- newslab = S_new_slab(aTHX_ DIFF(slab2, slot)*2);
- newslab->opslab_next = slab->opslab_next;
- slab->opslab_next = slab2 = newslab;
+ slab2 = S_new_slab(aTHX_ DIFF(slab2, slot)*2);
+ slab2->opslab_next = slab->opslab_next;
+ slab->opslab_next = slab2;
}
assert(DIFF(&slab2->opslab_slots, slab2->opslab_first) >= sz);