From: Jesse Luehrs Date: Sat, 10 Dec 2011 08:21:55 +0000 (-0600) Subject: don't call mro_method_changed_in on anon stashes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4eb02ba6963002b5d5e50d34f34cce59338e3ec4;p=gitmo%2FPackage-Stash-XS.git don't call mro_method_changed_in on anon stashes --- diff --git a/XS.xs b/XS.xs index bfc23a2..d3ce6aa 100644 --- a/XS.xs +++ b/XS.xs @@ -101,7 +101,8 @@ GvASSUMECV_on(g); \ } \ GvCVGEN(g) = 0; \ - mro_method_changed_in(GvSTASH(g)); \ + if (HvENAME_get(GvSTASH(g))) \ + mro_method_changed_in(GvSTASH(g)); \ } while (0) #define GvSetIO(g,v) do { \ SvREFCNT_dec(GvIO(g)); \