8c34e50dc slowed down detruction with no DESTROY
authorFather Chrysostomos <sprout@cpan.org>
Sat, 17 Nov 2012 18:49:11 +0000 (10:49 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 17 Nov 2012 21:49:08 +0000 (13:49 -0800)
commit7cc6787e9dbebdd83799d997361188ab6dfe8ead
tree4995effc7d08b08a0cbf8f1fbc94b28e3eea3bd7
parent7dc8663964c66a698d31bbdc8e8abed69bddeec3
8c34e50dc slowed down detruction with no DESTROY

I changed it to cache the DESTROY method in SvSTASH(stash), instead
of amagic tables, for the sake of speed.  But I made no distinction
between ‘no cache’ and ‘no DESTROY method’.  So classes with no
DESTROY method became as slow as perl 5.6.

To solve that, I’m using an adjusted pointer (following the example
of warnings.h) to mean ‘intentionally blank’.

I also fixed two instances of the DESTROY cache not being updated,
introduced by that commit.
mro.c
sv.c