From 0925dc7fc4dca2e6b5f629d00032568d5bcc2c5b Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Sat, 17 Oct 2015 13:15:06 +0100 Subject: PUSHLOOP_PLAIN: don't set unused fields Currently PUSHLOOP_PLAIN sets a whole unch of fields that it isn't going to ue to NULL or 0, e.g. blk_loop.itersave. Skip this and leave them wild. Make cx_dump() not try to dump them for CXt_LOOP_PLAIN --- cop.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cop.h') diff --git a/cop.h b/cop.h index 252eeb93b0..ba9d4251a8 100644 --- a/cop.h +++ b/cop.h @@ -809,11 +809,7 @@ struct block_loop { #define PUSHLOOP_PLAIN(cx) \ cx->blk_loop.my_op = cLOOP; \ - cx->blk_loop.state_u.ary.ary = NULL; \ - cx->blk_loop.state_u.ary.ix = 0; \ - cx->cx_old_savestack_ix = PL_savestack_ix; \ - cx->blk_loop.itervar_u.svp = NULL; \ - cx->blk_loop.itersave = NULL; + cx->cx_old_savestack_ix = PL_savestack_ix; #ifdef USE_ITHREADS # define PUSHLOOP_FOR_setpad(c) (c)->blk_loop.oldcomppad = PL_comppad -- cgit v1.2.1