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

cotto at svn.parrot.org cotto at svn.parrot.org
Tue Apr 21 21:59:04 UTC 2009


Author: cotto
Date: Tue Apr 21 21:59:04 2009
New Revision: 38257
URL: https://trac.parrot.org/parrot/changeset/38257

Log:
[PMC] remove ExceptionHandler's destroy, as the inherited one does the same thing

Modified:
   trunk/src/pmc/exceptionhandler.pmc

Modified: trunk/src/pmc/exceptionhandler.pmc
==============================================================================
--- trunk/src/pmc/exceptionhandler.pmc	Tue Apr 21 21:31:15 2009	(r38256)
+++ trunk/src/pmc/exceptionhandler.pmc	Tue Apr 21 21:59:04 2009	(r38257)
@@ -79,31 +79,6 @@
             pobject_lives(interp, (PObj *)core_struct->handled_types_except);
     }
 
-    /*
-     * can't reuse Continuation's destroy yet -
-     * RT #46703 fix ref_count handling for exception_handlers first
-     *
-     * An ExceptionHandler is kind of a limited Continuation
-     * (can only call 'up the stack').  Therefore we probably don't
-     * have to convert all RetContinuations to real Continuations
-     */
-
-    VTABLE void destroy() {
-        Parrot_cont                        * const cc          = (Parrot_cont *)PMC_cont(SELF);
-        Parrot_ExceptionHandler_attributes * const core_struct =
-            PARROT_EXCEPTIONHANDLER(SELF);
-
-        if (cc) {
-            mem_sys_free(cc);
-            PMC_cont(SELF) = NULL;
-        }
-
-        if (core_struct) {
-            mem_sys_free(core_struct);
-            PMC_data(SELF) = NULL;
-        }
-    }
-
     VTABLE PMC *clone() {
         PMC * const result = SUPER();
         PObj_custom_mark_CLEAR(result);


More information about the parrot-commits mailing list