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

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Sun Aug 23 22:51:31 UTC 2009


Author: whiteknight
Date: Sun Aug 23 22:51:29 2009
New Revision: 40744
URL: https://trac.parrot.org/parrot/changeset/40744

Log:
[gc] fix codestd failure, and other small things

Modified:
   trunk/src/gc/gc_ms.c

Modified: trunk/src/gc/gc_ms.c
==============================================================================
--- trunk/src/gc/gc_ms.c	Sun Aug 23 20:31:13 2009	(r40743)
+++ trunk/src/gc/gc_ms.c	Sun Aug 23 22:51:29 2009	(r40744)
@@ -346,12 +346,14 @@
 
     /* requires that num_free_objects be updated in Parrot_gc_mark_and_sweep.
        If gc is disabled, then we must check the free list directly. */
-    if ((!pool->free_list || pool->num_free_objects < pool->replenish_level)
 #if GC_USE_LAZY_ALLOCATOR
-        && !pool->newfree
-#endif
-    )
+    if ((!pool->free_list || pool->num_free_objects < pool->replenish_level)
+        && !pool->newfree)
         (*pool->alloc_objects) (interp, pool);
+#else
+    if (!pool->free_list || pool->num_free_objects < pool->replenish_level)
+    (*pool->alloc_objects) (interp, pool);
+#endif
 }
 
 /*
@@ -371,7 +373,7 @@
     ARGIN(void *to_add))
 {
     ASSERT_ARGS(gc_ms_add_free_object)
-    GC_MS_PObj_Wrapper *object           = (GC_MS_PObj_Wrapper *)to_add;
+    GC_MS_PObj_Wrapper *object = (GC_MS_PObj_Wrapper *)to_add;
 
     PObj_flags_SETTO(object, PObj_on_free_list_FLAG);
 


More information about the parrot-commits mailing list