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

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sun Mar 21 03:52:15 UTC 2010


Author: chromatic
Date: Sun Mar 21 03:52:10 2010
New Revision: 45075
URL: https://trac.parrot.org/parrot/changeset/45075

Log:
[GC] Tidied code; no functional changes.

Modified:
   trunk/src/gc/alloc_resources.c
   trunk/src/gc/gc_ms.c
   trunk/src/gc/mark_sweep.c

Modified: trunk/src/gc/alloc_resources.c
==============================================================================
--- trunk/src/gc/alloc_resources.c	Sun Mar 21 01:26:33 2010	(r45074)
+++ trunk/src/gc/alloc_resources.c	Sun Mar 21 03:52:10 2010	(r45075)
@@ -632,7 +632,7 @@
 =item C<char * aligned_mem(const Buffer *buffer, char *mem)>
 
 Returns a pointer to the aligned allocated storage for Buffer C<buffer>,
-which might not be the same as the pointer to C<buffeR> because of
+which might not be the same as the pointer to C<buffer> because of
 memory alignment.
 
 =cut
@@ -680,7 +680,7 @@
 aligned_string_size(size_t len)
 {
     ASSERT_ARGS(aligned_string_size)
-    len += sizeof (void*);
+    len += sizeof (void *);
     len = (len + WORD_ALIGN_1) & WORD_ALIGN_MASK;
     return len;
 }

Modified: trunk/src/gc/gc_ms.c
==============================================================================
--- trunk/src/gc/gc_ms.c	Sun Mar 21 01:26:33 2010	(r45074)
+++ trunk/src/gc/gc_ms.c	Sun Mar 21 03:52:10 2010	(r45075)
@@ -674,7 +674,7 @@
             ? interp->mem_pools->constant_string_header_pool
             : interp->mem_pools->string_header_pool;
 
-    return (STRING*)pool->get_free_object(interp, interp->mem_pools, pool);
+    return (STRING *)pool->get_free_object(interp, interp->mem_pools, pool);
 }
 
 
@@ -888,9 +888,7 @@
     Variable_Size_Pool * const pool = interp->mem_pools->memory_pool;
     size_t new_size, needed, old_size;
 
-    /*
-     * we don't shrink buffers
-     */
+    /* we don't shrink buffers */
     if (newsize <= Buffer_buflen(buffer))
         return;
 

Modified: trunk/src/gc/mark_sweep.c
==============================================================================
--- trunk/src/gc/mark_sweep.c	Sun Mar 21 01:26:33 2010	(r45074)
+++ trunk/src/gc/mark_sweep.c	Sun Mar 21 03:52:10 2010	(r45075)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2001-2009, Parrot Foundation.
+Copyright (C) 2001-2010, Parrot Foundation.
 $Id$
 
 =head1 NAME


More information about the parrot-commits mailing list