This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #126410] keep the DESTROY cache in mro_meta
authorTony Cook <tony@develop-help.com>
Mon, 18 Jan 2016 06:42:32 +0000 (17:42 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 8 Feb 2016 03:52:51 +0000 (14:52 +1100)
commitac3b837b9e1b412c93837ea13eacd367439264ec
tree1a57c2a1b3721be0a9d9e9b2aae739f1c0ba29bc
parent27895dda808516d2e00748a19f6648febae7161f
[perl #126410] keep the DESTROY cache in mro_meta

We're already keeping destroy_gen there, so keep the CV there too.

The previous implementation, introduced in 8c34e50d, kept the
destroy method cache in the stash's stash, which broke B's SvSTASH
method.

Before that, the DESTROY method was cached in overload magic.

A previous version of this patch didn't clear the destructor cache on
a clone, which caused ext/XS-APItest/t/clone_with_stack.t to fail.
ext/B/t/sv_stash.t
hv.h
mro_core.c
sv.c