From 04e62e517a756f965d577afe246e77a841330712 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 12 Apr 2006 12:01:38 +0000 Subject: As OPs are shared between threads, they should be using PerlMemShared_*alloc functions, rather than per-thread *alloc()s. p4raw-id: //depot/perl@27773 --- op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op.c') 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); -- cgit v1.2.1