summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-10-26 17:08:28 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-10-28 16:15:08 -0700
commit07b605e5ff63dcb6d539ba8bfcb5caf87078f032 (patch)
tree55bb704058da4fdeb7960659bbef52ea4ac1e2af /pp_hot.c
parentcf93a474d4757162f972857eb69a670bf2aad44d (diff)
downloadperl-07b605e5ff63dcb6d539ba8bfcb5caf87078f032.tar.gz
[perl #119811] Remove %DB::lsub
Under the debugger (the -d switch), if there is a DB::sub subroutine, then %DB::lsub gets autovivified during a call to an lvalue sub. That hash is never used. The code for vivifying the *DB::lsub glob was copied from *DB::sub when lsub was added, and *DB::sub does have a hash (%DB::sub), but *DB::lsub doesn’t need one.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 48239a38ee..7ae8f3a019 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2621,7 +2621,7 @@ try_autoload:
PL_curcopdb = PL_curcop;
if (CvLVALUE(cv)) {
/* check for lsub that handles lvalue subroutines */
- cv = GvCV(gv_HVadd(gv_fetchpvs("DB::lsub", GV_ADDMULTI, SVt_PVHV)));
+ cv = GvCV(gv_fetchpvs("DB::lsub", GV_ADDMULTI, SVt_PVCV));
/* if lsub not found then fall back to DB::sub */
if (!cv) cv = GvCV(PL_DBsub);
} else {