[svn:parrot] r41903 - branches/pcc_reapply/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Oct 17 20:28:42 UTC 2009


Author: chromatic
Date: Sat Oct 17 20:28:41 2009
New Revision: 41903
URL: https://trac.parrot.org/parrot/changeset/41903

Log:
[PMC] Fixed Object PMC's find_method VTABLE op to return PMCNULL when running
an overloaded VTABLE entry for find_method.  Note that
Parrot_pcc_invoke_sub_from_c_args() does not eventually initialize the
passed-in pointers like the previous version did.  We'll have to fix that or
scrub the code for uninitialized values.

Modified:
   branches/pcc_reapply/src/pmc/object.pmc

Modified: branches/pcc_reapply/src/pmc/object.pmc
==============================================================================
--- branches/pcc_reapply/src/pmc/object.pmc	Sat Oct 17 18:22:09 2009	(r41902)
+++ branches/pcc_reapply/src/pmc/object.pmc	Sat Oct 17 20:28:41 2009	(r41903)
@@ -352,7 +352,7 @@
                     find_method);
 
             if (!PMC_IS_NULL(method)) {
-                PMC *result;
+                PMC *result = PMCNULL;
                 Parrot_pcc_invoke_sub_from_c_args(interp, method,
                         "PiS->P", SELF, name, &result);
                 return result;


More information about the parrot-commits mailing list