Fixes to bugs introduced by PL_stashcache
authorArtur Bergman <sky@nanisky.com>
Mon, 14 Apr 2003 21:15:00 +0000 (21:15 +0000)
committerArtur Bergman <sky@nanisky.com>
Mon, 14 Apr 2003 21:15:00 +0000 (21:15 +0000)
commit7e8961ecc77ac069ddd54d220ef48fd89f1122d6
tree8e4a939671b8c9010c43b51fcf99f7cc2698363f
parent00bf5cd963bef6a3dffb6f796fe06e66184d13f0
Fixes to bugs introduced by PL_stashcache
A) Follow suggestion by Benjamin Goldberg to use hv_delete
instead of hv_delete_ent to avoid creating a temporary SV
B) Don't increment the refcount, sneak it into an IV instead
C) When a GP is a deleted that contains a stash, remove the
corresponding entry since hv might be in use in other places.
D) Note that no test cases test the deletion of packages to catch
this bug.

p4raw-id: //depot/perl@19212
gv.c
hv.c
pp_hot.c