summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-07 21:17:10 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-07 21:17:10 +0000
commit36c662f48c9a23ec4251c3cf747c3f42c63a6fd9 (patch)
treee7c1b150e9145f650e078833e8d4fdfebec28203 /regexec.c
parenta43d94f2c089c6f14197795daeebb7835550a747 (diff)
downloadperl-36c662f48c9a23ec4251c3cf747c3f42c63a6fd9.tar.gz
Clarify the use of SVf_BREAK on PL_reg_curpm.
p4raw-id: //depot/perl@32895
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 0f1c9e11bd..26c7a1af52 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2256,7 +2256,8 @@ S_regtry(pTHX_ regmatch_info *reginfo, char **startpos)
#ifdef USE_ITHREADS
{
SV* const repointer = newSViv(0);
- /* so we know which PL_regex_padav element is PL_reg_curpm */
+ /* so we know which PL_regex_padav element is PL_reg_curpm
+ when clearing up in perl_destruct() */
SvFLAGS(repointer) |= SVf_BREAK;
av_push(PL_regex_padav,repointer);
PL_reg_curpm->op_pmoffset = av_len(PL_regex_padav);