ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/State.xs
(Generate patch)

Comparing Coro/Coro/State.xs (file contents):
Revision 1.254 by root, Fri Nov 7 20:27:47 2008 UTC vs.
Revision 1.260 by root, Mon Nov 10 04:37:23 2008 UTC

142#define NOINLINE attribute ((noinline)) 142#define NOINLINE attribute ((noinline))
143 143
144#include "CoroAPI.h" 144#include "CoroAPI.h"
145 145
146#ifdef USE_ITHREADS 146#ifdef USE_ITHREADS
147
147static perl_mutex coro_lock; 148static perl_mutex coro_lock;
148# define LOCK do { MUTEX_LOCK (&coro_lock); } while (0) 149# define LOCK do { MUTEX_LOCK (&coro_lock); } while (0)
149# define UNLOCK do { MUTEX_UNLOCK (&coro_lock); } while (0) 150# define UNLOCK do { MUTEX_UNLOCK (&coro_lock); } while (0)
151# if CORO_PTHREAD
152static void *coro_thx;
153# endif
154
150#else 155#else
156
151# define LOCK (void)0 157# define LOCK (void)0
152# define UNLOCK (void)0 158# define UNLOCK (void)0
159
153#endif 160#endif
161
162# undef LOCK
163# define LOCK (void)0
164# undef UNLOCK
165# define UNLOCK (void)0
154 166
155/* helper storage struct for Coro::AIO */ 167/* helper storage struct for Coro::AIO */
156struct io_state 168struct io_state
157{ 169{
158 AV *res; 170 AV *res;
159 int errorno; 171 int errorno;
160 I32 laststype; 172 I32 laststype; /* U16 in 5.10.0 */
161 int laststatval; 173 int laststatval;
162 Stat_t statcache; 174 Stat_t statcache;
163}; 175};
164 176
165static double (*nvtime)(); /* so why doesn't it take void? */ 177static double (*nvtime)(); /* so why doesn't it take void? */
169static struct CoroAPI coroapi; 181static struct CoroAPI coroapi;
170static AV *main_mainstack; /* used to differentiate between $main and others */ 182static AV *main_mainstack; /* used to differentiate between $main and others */
171static JMPENV *main_top_env; 183static JMPENV *main_top_env;
172static HV *coro_state_stash, *coro_stash; 184static HV *coro_state_stash, *coro_stash;
173static volatile SV *coro_mortal; /* will be freed/thrown after next transfer */ 185static volatile SV *coro_mortal; /* will be freed/thrown after next transfer */
186static volatile struct coro *transfer_next;
187
188struct transfer_args
189{
190 struct coro *prev, *next;
191};
174 192
175static GV *irsgv; /* $/ */ 193static GV *irsgv; /* $/ */
176static GV *stdoutgv; /* *STDOUT */ 194static GV *stdoutgv; /* *STDOUT */
177static SV *rv_diehook; 195static SV *rv_diehook;
178static SV *rv_warnhook; 196static SV *rv_warnhook;
280#define PRIO_MIN -4 298#define PRIO_MIN -4
281 299
282/* for Coro.pm */ 300/* for Coro.pm */
283static SV *coro_current; 301static SV *coro_current;
284static SV *coro_readyhook; 302static SV *coro_readyhook;
285static AV *coro_ready [PRIO_MAX-PRIO_MIN+1]; 303static AV *coro_ready [PRIO_MAX - PRIO_MIN + 1];
286static int coro_nready; 304static int coro_nready;
287static struct coro *coro_first; 305static struct coro *coro_first;
288 306
289/** lowlevel stuff **********************************************************/ 307/** lowlevel stuff **********************************************************/
290 308
822 PL_rs = newSVsv (GvSV (irsgv)); 840 PL_rs = newSVsv (GvSV (irsgv));
823 PL_defoutgv = (GV *)SvREFCNT_inc_NN (stdoutgv); 841 PL_defoutgv = (GV *)SvREFCNT_inc_NN (stdoutgv);
824 842
825 { 843 {
826 dSP; 844 dSP;
827 LOGOP myop; 845 UNOP myop;
828 846
829 Zero (&myop, 1, LOGOP); 847 Zero (&myop, 1, UNOP);
830 myop.op_next = Nullop; 848 myop.op_next = Nullop;
831 myop.op_flags = OPf_WANT_VOID; 849 myop.op_flags = OPf_WANT_VOID;
832 850
833 PUSHMARK (SP); 851 PUSHMARK (SP);
834 XPUSHs (sv_2mortal (av_shift (GvAV (PL_defgv)))); 852 XPUSHs (sv_2mortal (av_shift (GvAV (PL_defgv))));
839 } 857 }
840 858
841 /* this newly created coroutine might be run on an existing cctx which most 859 /* this newly created coroutine might be run on an existing cctx which most
842 * likely was suspended in set_stacklevel, called from entersub. 860 * likely was suspended in set_stacklevel, called from entersub.
843 * set_stacklevl doesn't do anything on return, but entersub does LEAVE, 861 * set_stacklevl doesn't do anything on return, but entersub does LEAVE,
844 * so we ENTER here for symmetry 862 * so we ENTER here for symmetry.
845 */ 863 */
846 ENTER; 864 ENTER;
847} 865}
848 866
849static void 867static void
1014 1032
1015 TAINT_NOT; 1033 TAINT_NOT;
1016 return 0; 1034 return 0;
1017} 1035}
1018 1036
1037static void
1038prepare_set_stacklevel (struct transfer_args *ta, struct coro_cctx *cctx)
1039{
1040 ta->prev = (struct coro *)cctx;
1041 ta->next = 0;
1042}
1043
1019/* inject a fake call to Coro::State::_cctx_init into the execution */ 1044/* inject a fake call to Coro::State::_cctx_init into the execution */
1020/* _cctx_init should be careful, as it could be called at almost any time */ 1045/* _cctx_init should be careful, as it could be called at almost any time */
1021/* during execution of a perl program */ 1046/* during execution of a perl program */
1047/* also initialises PL_top_env */
1022static void NOINLINE 1048static void NOINLINE
1023cctx_prepare (pTHX_ coro_cctx *cctx) 1049cctx_prepare (pTHX_ coro_cctx *cctx)
1024{ 1050{
1025 dSP; 1051 dSP;
1026 LOGOP myop; 1052 UNOP myop;
1027 1053
1028 PL_top_env = &PL_start_env; 1054 PL_top_env = &PL_start_env;
1029 1055
1030 if (cctx->flags & CC_TRACE) 1056 if (cctx->flags & CC_TRACE)
1031 PL_runops = runops_trace; 1057 PL_runops = runops_trace;
1032 1058
1033 Zero (&myop, 1, LOGOP); 1059 Zero (&myop, 1, UNOP);
1034 myop.op_next = PL_op; 1060 myop.op_next = PL_op;
1035 myop.op_flags = OPf_WANT_VOID | OPf_STACKED; 1061 myop.op_flags = OPf_WANT_VOID | OPf_STACKED;
1036 1062
1037 PUSHMARK (SP); 1063 PUSHMARK (SP);
1038 EXTEND (SP, 2); 1064 EXTEND (SP, 2);
1039 PUSHs (sv_2mortal (newSViv (PTR2IV (cctx)))); 1065 PUSHs (sv_2mortal (newSViv ((IV)cctx)));
1040 PUSHs ((SV *)get_cv ("Coro::State::_cctx_init", FALSE)); 1066 PUSHs ((SV *)get_cv ("Coro::State::_cctx_init", FALSE));
1041 PUTBACK; 1067 PUTBACK;
1042 PL_op = (OP *)&myop; 1068 PL_op = (OP *)&myop;
1043 PL_op = PL_ppaddr[OP_ENTERSUB](aTHX); 1069 PL_op = PL_ppaddr[OP_ENTERSUB](aTHX);
1044 SPAGAIN; 1070 SPAGAIN;
1045} 1071}
1046 1072
1073/* the tail of transfer: execute stuff we can onyl do afetr a transfer */
1074static void
1075transfer_tail (void)
1076{
1077 struct coro *next = (struct coro *)transfer_next;
1078 transfer_next = 0; //D for temporary assertion in transfer
1079 assert (("FATAL ERROR: internal error 1067 in Coro module, please report", next));//D
1080
1081 free_coro_mortal (aTHX);
1082 UNLOCK;
1083
1084 if (expect_false (next->throw))
1085 {
1086 SV *exception = sv_2mortal (next->throw);
1087
1088 next->throw = 0;
1089 sv_setsv (ERRSV, exception);
1090 croak (0);
1091 }
1092}
1093
1047/* 1094/*
1048 * this is a _very_ stripped down perl interpreter ;) 1095 * this is a _very_ stripped down perl interpreter ;)
1049 */ 1096 */
1050static void 1097static void
1051cctx_run (void *arg) 1098cctx_run (void *arg)
1052{ 1099{
1100#ifdef USE_ITHREADS
1101# if CORO_PTHREAD
1102 PERL_SET_CONTEXT (coro_thx);
1103# endif
1104#endif
1105 {
1053 dTHX; 1106 dTHX;
1054 1107
1055 /* cctx_run is the alternative tail of transfer(), so unlock here. */ 1108 /* entersub called ENTER, but we never 'returned', undo that here */
1056 UNLOCK; 1109 LEAVE;
1057 1110
1058 /* we now skip the entersub that lead to transfer() */ 1111 /* we now skip the entersub that did lead to transfer() */
1059 PL_op = PL_op->op_next; 1112 PL_op = PL_op->op_next;
1060 1113
1061 /* inject a fake subroutine call to cctx_init */ 1114 /* inject a fake subroutine call to cctx_init */
1062 cctx_prepare (aTHX_ (coro_cctx *)arg); 1115 cctx_prepare (aTHX_ (coro_cctx *)arg);
1063 1116
1117 /* cctx_run is the alternative tail of transfer() */
1118 transfer_tail ();
1119
1064 /* somebody or something will hit me for both perl_run and PL_restartop */ 1120 /* somebody or something will hit me for both perl_run and PL_restartop */
1065 PL_restartop = PL_op; 1121 PL_restartop = PL_op;
1066 perl_run (PL_curinterp); 1122 perl_run (PL_curinterp);
1067 1123
1068 /* 1124 /*
1069 * If perl-run returns we assume exit() was being called or the coro 1125 * If perl-run returns we assume exit() was being called or the coro
1070 * fell off the end, which seems to be the only valid (non-bug) 1126 * fell off the end, which seems to be the only valid (non-bug)
1071 * reason for perl_run to return. We try to exit by jumping to the 1127 * reason for perl_run to return. We try to exit by jumping to the
1072 * bootstrap-time "top" top_env, as we cannot restore the "main" 1128 * bootstrap-time "top" top_env, as we cannot restore the "main"
1073 * coroutine as Coro has no such concept 1129 * coroutine as Coro has no such concept
1074 */ 1130 */
1075 PL_top_env = main_top_env; 1131 PL_top_env = main_top_env;
1076 JMPENV_JUMP (2); /* I do not feel well about the hardcoded 2 at all */ 1132 JMPENV_JUMP (2); /* I do not feel well about the hardcoded 2 at all */
1133 }
1077} 1134}
1078 1135
1079static coro_cctx * 1136static coro_cctx *
1080cctx_new () 1137cctx_new ()
1081{ 1138{
1082 coro_cctx *cctx; 1139 coro_cctx *cctx;
1140
1141 ++cctx_count;
1142 New (0, cctx, 1, coro_cctx);
1143
1144 cctx->gen = cctx_gen;
1145 cctx->flags = 0;
1146 cctx->idle_sp = 0; /* can be accessed by transfer between cctx_run and set_stacklevel, on throw */
1147
1148 return cctx;
1149}
1150
1151/* create a new cctx only suitable as source */
1152static coro_cctx *
1153cctx_new_empty ()
1154{
1155 coro_cctx *cctx = cctx_new ();
1156
1157 cctx->sptr = 0;
1158 coro_create (&cctx->cctx, 0, 0, 0, 0);
1159
1160 return cctx;
1161}
1162
1163/* create a new cctx suitable as destination/running a perl interpreter */
1164static coro_cctx *
1165cctx_new_run ()
1166{
1167 coro_cctx *cctx = cctx_new ();
1083 void *stack_start; 1168 void *stack_start;
1084 size_t stack_size; 1169 size_t stack_size;
1085
1086 ++cctx_count;
1087 Newz (0, cctx, 1, coro_cctx);
1088
1089 cctx->gen = cctx_gen;
1090 1170
1091#if HAVE_MMAP 1171#if HAVE_MMAP
1092 cctx->ssize = ((cctx_stacksize * sizeof (long) + PAGESIZE - 1) / PAGESIZE + CORO_STACKGUARD) * PAGESIZE; 1172 cctx->ssize = ((cctx_stacksize * sizeof (long) + PAGESIZE - 1) / PAGESIZE + CORO_STACKGUARD) * PAGESIZE;
1093 /* mmap supposedly does allocate-on-write for us */ 1173 /* mmap supposedly does allocate-on-write for us */
1094 cctx->sptr = mmap (0, cctx->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); 1174 cctx->sptr = mmap (0, cctx->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);
1167 return cctx; 1247 return cctx;
1168 1248
1169 cctx_destroy (cctx); 1249 cctx_destroy (cctx);
1170 } 1250 }
1171 1251
1172 return cctx_new (); 1252 return cctx_new_run ();
1173} 1253}
1174 1254
1175static void 1255static void
1176cctx_put (coro_cctx *cctx) 1256cctx_put (coro_cctx *cctx)
1177{ 1257{
1227 ((coro_cctx *)prev)->idle_sp = STACKLEVEL; 1307 ((coro_cctx *)prev)->idle_sp = STACKLEVEL;
1228 assert (((coro_cctx *)prev)->idle_te = PL_top_env); /* just for the side-effect when asserts are enabled */ 1308 assert (((coro_cctx *)prev)->idle_te = PL_top_env); /* just for the side-effect when asserts are enabled */
1229 } 1309 }
1230 else if (expect_true (prev != next)) 1310 else if (expect_true (prev != next))
1231 { 1311 {
1232 static volatile int has_throw;
1233 coro_cctx *prev__cctx; 1312 coro_cctx *prev__cctx;
1234 1313
1235 if (expect_false (prev->flags & CF_NEW)) 1314 if (expect_false (prev->flags & CF_NEW))
1236 { 1315 {
1237 /* create a new empty/source context */ 1316 /* create a new empty/source context */
1238 ++cctx_count; 1317 prev->cctx = cctx_new_empty ();
1239 New (0, prev->cctx, 1, coro_cctx);
1240 prev->cctx->sptr = 0;
1241 coro_create (&prev->cctx->cctx, 0, 0, 0, 0);
1242
1243 prev->flags &= ~CF_NEW; 1318 prev->flags &= ~CF_NEW;
1244 prev->flags |= CF_RUNNING; 1319 prev->flags |= CF_RUNNING;
1245 } 1320 }
1246 1321
1247 prev->flags &= ~CF_RUNNING; 1322 prev->flags &= ~CF_RUNNING;
1288 ++next->usecount; 1363 ++next->usecount;
1289 1364
1290 if (expect_true (!next->cctx)) 1365 if (expect_true (!next->cctx))
1291 next->cctx = cctx_get (aTHX); 1366 next->cctx = cctx_get (aTHX);
1292 1367
1293 has_throw = !!next->throw; 1368 assert (("FATAL ERROR: internal error 1352 in Coro, please report", !transfer_next));//D
1369 transfer_next = next;
1294 1370
1295 if (expect_false (prev__cctx != next->cctx)) 1371 if (expect_false (prev__cctx != next->cctx))
1296 { 1372 {
1297 prev__cctx->top_env = PL_top_env; 1373 prev__cctx->top_env = PL_top_env;
1298 PL_top_env = next->cctx->top_env; 1374 PL_top_env = next->cctx->top_env;
1299 coro_transfer (&prev__cctx->cctx, &next->cctx->cctx); 1375 coro_transfer (&prev__cctx->cctx, &next->cctx->cctx);
1300 } 1376 }
1301 1377
1302 free_coro_mortal (aTHX); 1378 transfer_tail ();
1303 UNLOCK;
1304
1305 if (expect_false (has_throw))
1306 {
1307 struct coro *coro = SvSTATE (coro_current);
1308
1309 if (coro->throw)
1310 {
1311 SV *exception = coro->throw;
1312 coro->throw = 0;
1313 sv_setsv (ERRSV, exception);
1314 croak (0);
1315 }
1316 }
1317 } 1379 }
1318} 1380}
1319
1320struct transfer_args
1321{
1322 struct coro *prev, *next;
1323};
1324 1381
1325#define TRANSFER(ta, force_cctx) transfer (aTHX_ (ta).prev, (ta).next, (force_cctx)) 1382#define TRANSFER(ta, force_cctx) transfer (aTHX_ (ta).prev, (ta).next, (force_cctx))
1326#define TRANSFER_CHECK(ta) transfer_check (aTHX_ (ta).prev, (ta).next) 1383#define TRANSFER_CHECK(ta) transfer_check (aTHX_ (ta).prev, (ta).next)
1327 1384
1328/** high level stuff ********************************************************/ 1385/** high level stuff ********************************************************/
1540 /* cannot transfer to destroyed coros, skip and look for next */ 1597 /* cannot transfer to destroyed coros, skip and look for next */
1541 if (expect_false (ta->next->flags & CF_DESTROYED)) 1598 if (expect_false (ta->next->flags & CF_DESTROYED))
1542 { 1599 {
1543 UNLOCK; 1600 UNLOCK;
1544 SvREFCNT_dec (next_sv); 1601 SvREFCNT_dec (next_sv);
1545 /* coro_nready is already taken care of by destroy */ 1602 /* coro_nready has already been taken care of by destroy */
1546 continue; 1603 continue;
1547 } 1604 }
1548 1605
1549 --coro_nready; 1606 --coro_nready;
1550 UNLOCK; 1607 UNLOCK;
1635 struct coro *coro = SvSTATE (coro_sv); 1692 struct coro *coro = SvSTATE (coro_sv);
1636 1693
1637 if (flags & CC_TRACE) 1694 if (flags & CC_TRACE)
1638 { 1695 {
1639 if (!coro->cctx) 1696 if (!coro->cctx)
1640 coro->cctx = cctx_new (); 1697 coro->cctx = cctx_new_run ();
1641 else if (!(coro->cctx->flags & CC_TRACE)) 1698 else if (!(coro->cctx->flags & CC_TRACE))
1642 croak ("cannot enable tracing on coroutine with custom stack"); 1699 croak ("cannot enable tracing on coroutine with custom stack");
1643 1700
1644 coro->cctx->flags |= CC_NOREUSE | (flags & (CC_TRACE | CC_TRACE_ALL)); 1701 coro->cctx->flags |= CC_NOREUSE | (flags & (CC_TRACE | CC_TRACE_ALL));
1645 } 1702 }
1652 else 1709 else
1653 coro->slot->runops = RUNOPS_DEFAULT; 1710 coro->slot->runops = RUNOPS_DEFAULT;
1654 } 1711 }
1655} 1712}
1656 1713
1714#if 0
1657static int 1715static int
1658coro_gensub_free (pTHX_ SV *sv, MAGIC *mg) 1716coro_gensub_free (pTHX_ SV *sv, MAGIC *mg)
1659{ 1717{
1660 AV *padlist; 1718 AV *padlist;
1661 AV *av = (AV *)mg->mg_obj; 1719 AV *av = (AV *)mg->mg_obj;
1667 1725
1668static MGVTBL coro_gensub_vtbl = { 1726static MGVTBL coro_gensub_vtbl = {
1669 0, 0, 0, 0, 1727 0, 0, 0, 0,
1670 coro_gensub_free 1728 coro_gensub_free
1671}; 1729};
1730#endif
1672 1731
1673/*****************************************************************************/ 1732/*****************************************************************************/
1674/* PerlIO::cede */ 1733/* PerlIO::cede */
1675 1734
1676typedef struct 1735typedef struct
1752 1811
1753BOOT: 1812BOOT:
1754{ 1813{
1755#ifdef USE_ITHREADS 1814#ifdef USE_ITHREADS
1756 MUTEX_INIT (&coro_lock); 1815 MUTEX_INIT (&coro_lock);
1816# if CORO_PTHREAD
1817 coro_thx = PERL_GET_CONTEXT;
1818# endif
1757#endif 1819#endif
1758 BOOT_PAGESIZE; 1820 BOOT_PAGESIZE;
1759 1821
1760 irsgv = gv_fetchpv ("/" , GV_ADD|GV_NOTQUAL, SVt_PV); 1822 irsgv = gv_fetchpv ("/" , GV_ADD|GV_NOTQUAL, SVt_PV);
1761 stdoutgv = gv_fetchpv ("STDOUT", GV_ADD|GV_NOTQUAL, SVt_PVIO); 1823 stdoutgv = gv_fetchpv ("STDOUT", GV_ADD|GV_NOTQUAL, SVt_PVIO);
1842 1904
1843 PUTBACK; 1905 PUTBACK;
1844 switch (ix) 1906 switch (ix)
1845 { 1907 {
1846 case 0: 1908 case 0:
1847 ta.prev = (struct coro *)INT2PTR (coro_cctx *, SvIV (ST (0))); 1909 prepare_set_stacklevel (&ta, (struct coro_cctx *)SvIV (ST (0)));
1848 ta.next = 0;
1849 break; 1910 break;
1850 1911
1851 case 1: 1912 case 1:
1852 if (items != 2) 1913 if (items != 2)
1853 croak ("Coro::State::transfer (prev, next) expects two arguments, not %d", items); 1914 croak ("Coro::State::transfer (prev, next) expects two arguments, not %d", items);
1994 RETVAL = boolSV (coro->flags & ix); 2055 RETVAL = boolSV (coro->flags & ix);
1995 OUTPUT: 2056 OUTPUT:
1996 RETVAL 2057 RETVAL
1997 2058
1998void 2059void
2060throw (Coro::State self, SV *throw = &PL_sv_undef)
2061 PROTOTYPE: $;$
2062 CODE:
2063 SvREFCNT_dec (self->throw);
2064 self->throw = SvOK (throw) ? newSVsv (throw) : 0;
2065
2066void
1999api_trace (SV *coro, int flags = CC_TRACE | CC_TRACE_SUB) 2067api_trace (SV *coro, int flags = CC_TRACE | CC_TRACE_SUB)
2000 2068
2001SV * 2069SV *
2002has_cctx (Coro::State coro) 2070has_cctx (Coro::State coro)
2003 PROTOTYPE: $ 2071 PROTOTYPE: $
2012 CODE: 2080 CODE:
2013 RETVAL = (coro->cctx ? coro->cctx->flags : 0) & CC_TRACE_ALL; 2081 RETVAL = (coro->cctx ? coro->cctx->flags : 0) & CC_TRACE_ALL;
2014 OUTPUT: 2082 OUTPUT:
2015 RETVAL 2083 RETVAL
2016 2084
2017IV 2085UV
2018rss (Coro::State coro) 2086rss (Coro::State coro)
2019 PROTOTYPE: $ 2087 PROTOTYPE: $
2020 ALIAS: 2088 ALIAS:
2021 usecount = 1 2089 usecount = 1
2022 CODE: 2090 CODE:
2145 CODE: 2213 CODE:
2146 RETVAL = coro_nready; 2214 RETVAL = coro_nready;
2147 OUTPUT: 2215 OUTPUT:
2148 RETVAL 2216 RETVAL
2149 2217
2150void
2151throw (Coro::State self, SV *throw = &PL_sv_undef)
2152 PROTOTYPE: $;$
2153 CODE:
2154 SvREFCNT_dec (self->throw);
2155 self->throw = SvOK (throw) ? newSVsv (throw) : 0;
2156
2157# for async_pool speedup 2218# for async_pool speedup
2158void 2219void
2159_pool_1 (SV *cb) 2220_pool_1 (SV *cb)
2160 CODE: 2221 CODE:
2161{ 2222{
2204 sv_setsv (cb, &PL_sv_undef); 2265 sv_setsv (cb, &PL_sv_undef);
2205 2266
2206 SvREFCNT_dec ((SV *)PL_defoutgv); PL_defoutgv = (GV *)coro->saved_deffh; 2267 SvREFCNT_dec ((SV *)PL_defoutgv); PL_defoutgv = (GV *)coro->saved_deffh;
2207 coro->saved_deffh = 0; 2268 coro->saved_deffh = 0;
2208 2269
2209 if (coro_rss (aTHX_ coro) > SvIV (sv_pool_rss) 2270 if (coro_rss (aTHX_ coro) > SvUV (sv_pool_rss)
2210 || av_len (av_async_pool) + 1 >= SvIV (sv_pool_size)) 2271 || av_len (av_async_pool) + 1 >= SvIV (sv_pool_size))
2211 { 2272 {
2212 SV *old = PL_diehook; 2273 SV *old = PL_diehook;
2213 PL_diehook = 0; 2274 PL_diehook = 0;
2214 SvREFCNT_dec (old); 2275 SvREFCNT_dec (old);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines