summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-11 12:47:57 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-11 12:47:57 +0000
commit1017f0c58d4a167800bbc87ed89d97c1c0bbd071 (patch)
tree6ba1d4359af713e6db0cd0b8e6b53d84c615aaa7 /pp_hot.c
parent14a49a2428492a7a120f0254ff8085e99252f641 (diff)
downloadperl-1017f0c58d4a167800bbc87ed89d97c1c0bbd071.tar.gz
Remove code that protected pp_qr against REGEXPs going away during
global destruction whilst they were stored via true references in PL_regex_padav. It won't happen again (unless someone manages to get a reference to an OP's regexp, which is also a risk in 5.10 and 5.8) p4raw-id: //depot/perl@32951
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/pp_hot.c b/pp_hot.c
index e3eebe6a4c..6288db114d 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1200,15 +1200,6 @@ PP(pp_qr)
SV * const pkg = rx ? CALLREG_PACKAGE(rx) : NULL;
SV * const rv = sv_newmortal();
- if (!rx) {
- /* FIXME ORANGE.
- This can go if/when regexps are stored directly in PL_regex_pad
- rather than via references. do_clean_objs finds and frees them
- when they are stored as references. */
- XPUSHs(rv);
- RETURN;
- }
-
SvUPGRADE(rv, SVt_IV);
/* This RV is about to own a reference to the regexp. (In addition to the
reference already owned by the PMOP. */