[svn:parrot] r40894 - trunk/src/gc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Mon Aug 31 20:48:45 UTC 2009


Author: NotFound
Date: Mon Aug 31 20:48:43 2009
New Revision: 40894
URL: https://trac.parrot.org/parrot/changeset/40894

Log:
revert a helper function commited accidentally in r40893

Modified:
   trunk/src/gc/system.c

Modified: trunk/src/gc/system.c
==============================================================================
--- trunk/src/gc/system.c	Mon Aug 31 20:34:35 2009	(r40893)
+++ trunk/src/gc/system.c	Mon Aug 31 20:48:43 2009	(r40894)
@@ -409,13 +409,6 @@
 
 */
 
-PARROT_INLINE
-static void alive_mem_item(PARROT_INTERP, void *cur_var_ptr) /* HEADERIZER SKIP */
-{
-    const size_t ptr = *(size_t *)cur_var_ptr;
-    Parrot_gc_mark_PObj_alive(interp, (PObj *)ptr);
-}
-
 static void
 trace_mem_block(PARROT_INTERP, size_t lo_var_ptr, size_t hi_var_ptr)
 {
@@ -461,13 +454,13 @@
                 /* ...so ensure that Parrot_gc_mark_PObj_alive checks PObj_on_free_list_FLAG
                  * before adding it to the next_for_GC list, to have
                  * vtable->mark() called. */
-                alive_mem_item(interp, cur_var_ptr);
+                Parrot_gc_mark_PObj_alive(interp, (PObj *)ptr);
             }
             else if (buffer_min <= ptr && ptr < buffer_max &&
                     is_buffer_ptr(interp, (void *)ptr)) {
                 /* ...and since Parrot_gc_mark_PObj_alive doesn't care about bufstart, it
                  * doesn't really matter if it sets a flag */
-                alive_mem_item(interp, cur_var_ptr);
+                Parrot_gc_mark_PObj_alive(interp, (PObj *)ptr);
             }
         }
     }


More information about the parrot-commits mailing list