[svn:parrot] r39411 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Jun 5 23:07:36 UTC 2009


Author: chromatic
Date: Fri Jun  5 23:07:35 2009
New Revision: 39411
URL: https://trac.parrot.org/parrot/changeset/39411

Log:
[PMC] Hoisted a SUPER() call in EventHandler's mark entry into an if block
where it only makes sense to call it.  Avoiding needless work is good.

Modified:
   trunk/src/pmc/eventhandler.pmc

Modified: trunk/src/pmc/eventhandler.pmc
==============================================================================
--- trunk/src/pmc/eventhandler.pmc	Fri Jun  5 23:06:28 2009	(r39410)
+++ trunk/src/pmc/eventhandler.pmc	Fri Jun  5 23:07:35 2009	(r39411)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2007-2008, Parrot Foundation.
+Copyright (C) 2007-2009, Parrot Foundation.
 $Id$
 
 =head1 NAME
@@ -138,9 +138,9 @@
 
             if (! PMC_IS_NULL(e->code))
                 Parrot_gc_mark_PObj_alive(INTERP, (PObj *)e->code);
-        }
 
-        SUPER();
+            SUPER();
+        }
     }
 
 /*


More information about the parrot-commits mailing list