From 72dc9ed5af65c946f73050becea29207a1af86c1 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 12 Apr 2006 22:45:12 +0000 Subject: Change cop_warnings from an SV holding the warnings bitmask to a directly (shared) malloc()ed buffer holding the warnings bitmask. This avoids bugs/crashes when the interpreter that created an optree is freed but the optree remains in use by other interpreters. p4raw-id: //depot/perl@27779 --- embed.fnc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embed.fnc') diff --git a/embed.fnc b/embed.fnc index 4d038e400e..954400710b 100644 --- a/embed.fnc +++ b/embed.fnc @@ -1666,6 +1666,8 @@ Ap |GV* |gv_SVadd |NN GV* gv #endif Apo |bool |ckwarn |U32 w Apo |bool |ckwarn_d |U32 w +nopMa |STRLEN *|new_warnings_bitfield|NULLOK STRLEN *buffer \ + |NN const char *const bits|STRLEN size p |void |offer_nice_chunk |NN void *chunk|U32 chunk_size -- cgit v1.2.1