summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-12 12:01:38 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-12 12:01:38 +0000
commit04e62e517a756f965d577afe246e77a841330712 (patch)
treecf386358d78e7d959ec333adef84eed4842340b6 /op.c
parentbac066580cdb04efa84baa0fa96c51c7107436cf (diff)
downloadperl-04e62e517a756f965d577afe246e77a841330712.tar.gz
As OPs are shared between threads, they should be using
PerlMemShared_*alloc functions, rather than per-thread *alloc()s. p4raw-id: //depot/perl@27773
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 64dc9f2e7c..da99916d1f 100644
--- a/op.c
+++ b/op.c
@@ -4539,7 +4539,7 @@ Perl_newFOROP(pTHX_ I32 flags, char *label, line_t forline, OP *sv, OP *expr, OP
loop = tmp;
}
#else
- Renew(loop, 1, LOOP);
+ loop = PerlMemShared_realloc(loop, sizeof(LOOP));
#endif
loop->op_targ = padoff;
wop = newWHILEOP(flags, 1, loop, forline, newOP(OP_ITER, 0), block, cont, 0);