From 1a71e8b8cea1268e5af2d95d4f60910d5e1eef7c Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 18 May 2012 06:30:18 -0700 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20incr=20PL=5Famagic=5Fgeneration?= =?utf8?q?=20in=20universal.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In boot_core_UNIVERSAL, there is no need to increment PL_amagic_generation to indicate that there are classes using over- loading. The previous commit removed the only use of it that required it to be non-zero for overloading to work. --- universal.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/universal.c b/universal.c index b3c7015..b37b0ba 100644 --- a/universal.c +++ b/universal.c @@ -1419,9 +1419,6 @@ Perl_boot_core_UNIVERSAL(pTHX) newXS_flags(xsub->name, xsub->xsub, file, xsub->proto, 0); } while (++xsub < end); - /* register the overloading (type 'A') magic */ - PL_amagic_generation++; - /* Providing a Regexp::DESTROY fixes #21347. See test in t/op/ref.t */ { CV * const cv = -- 2.7.4