diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-12 12:01:38 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-12 12:01:38 +0000 |
commit | 04e62e517a756f965d577afe246e77a841330712 (patch) | |
tree | cf386358d78e7d959ec333adef84eed4842340b6 /op.c | |
parent | bac066580cdb04efa84baa0fa96c51c7107436cf (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |