summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-06 21:53:46 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-06 21:53:46 +0000
commitad639bfb68f3fce4864d833950ed2ff9dd1cb28d (patch)
tree0f94b8b59215fe8d987ae34bd2793fcc3961cadd /op.h
parentbfd0ff222f043bea86c0b0e7700eeab47f675d46 (diff)
downloadperl-ad639bfb68f3fce4864d833950ed2ff9dd1cb28d.tar.gz
Only append ?? match ops to the list used by reset. This saves memory
and time. p4raw-id: //depot/perl@30857
Diffstat (limited to 'op.h')
-rw-r--r--op.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/op.h b/op.h
index 0dee522a40..f99cd3bd0a 100644
--- a/op.h
+++ b/op.h
@@ -326,6 +326,11 @@ struct pmop {
REGEXP * op_pmregexp; /* compiled expression */
#endif
U32 op_pmflags;
+ /* This field is only needed so that PMOPs can delete themselves from the
+ list held by the stash. In turn, that list is only needed for reset
+ to work correctly, and is now only a list of ops used by ?? matches,
+ which are rare. Hence it would be useful if we could find a way to
+ shave it. */
#ifdef USE_ITHREADS
char * op_pmstashpv;
#else