develooper Front page | perl.cvs.parrot | Postings from January 2009

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

From:
Whiteknight
Date:
January 18, 2009 16:41
Subject:
[svn:parrot] r35731 - trunk/src/gc
Message ID:
20090119004050.1CC26CB9AE@x12.develooper.com
Author: Whiteknight
Date: Sun Jan 18 16:40:49 2009
New Revision: 35731

Modified:
   trunk/src/gc/incremental_ms.c

Log:
[GC] apply a patch from jimmy++ to simplify a debug condition for TT#84

Modified: trunk/src/gc/incremental_ms.c
==============================================================================
--- trunk/src/gc/incremental_ms.c	(original)
+++ trunk/src/gc/incremental_ms.c	Sun Jan 18 16:40:49 2009
@@ -527,11 +527,9 @@
 #if DISABLE_GC_DEBUG
     UNUSED(interp);
 #else
-    if (GC_DEBUG(interp)) {
-        if (pool == interp->arena_base->pmc_pool) {
-            PMC * const p = (PMC *)to_add;
-            p->vtable     = interp->vtables[enum_class_Null];
-        }
+    if (GC_DEBUG(interp)  && pool == interp->arena_base->pmc_pool) {
+        PMC * const p = (PMC *)to_add;
+        p->vtable     = interp->vtables[enum_class_Null];
     }
 #endif
 }



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About