diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-10-26 17:08:28 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-10-28 16:15:08 -0700 |
commit | 07b605e5ff63dcb6d539ba8bfcb5caf87078f032 (patch) | |
tree | 55bb704058da4fdeb7960659bbef52ea4ac1e2af /pp_hot.c | |
parent | cf93a474d4757162f972857eb69a670bf2aad44d (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |