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

darbelo at svn.parrot.org darbelo at svn.parrot.org
Sat Apr 10 17:23:14 UTC 2010


Author: darbelo
Date: Sat Apr 10 17:23:14 2010
New Revision: 45537
URL: https://trac.parrot.org/parrot/changeset/45537

Log:
Remove some dead code that was previously wrapped in '#if 0'

Modified:
   trunk/src/gc/alloc_resources.c

Modified: trunk/src/gc/alloc_resources.c
==============================================================================
--- trunk/src/gc/alloc_resources.c	Sat Apr 10 17:15:16 2010	(r45536)
+++ trunk/src/gc/alloc_resources.c	Sat Apr 10 17:23:14 2010	(r45537)
@@ -736,18 +736,6 @@
 aligned_mem(SHIM(const Buffer *buffer), ARGIN(char *mem))
 {
     ASSERT_ARGS(aligned_mem)
-#if 0
-    This code causing assert in compact_pool. Looks like STRINGs have
-    aligned flag set, but allocated less memory.
-    See C<aligned_string_size>.
-    if (PObj_is_COWable_TEST(buffer))
-        mem += sizeof (void*);
-    if (PObj_aligned_TEST(buffer))
-        mem = (char*)(((unsigned long)(mem + BUFFER_ALIGN_1)) &
-                BUFFER_ALIGN_MASK);
-    else
-        mem = (char*)(((unsigned long)(mem + WORD_ALIGN_1)) & WORD_ALIGN_MASK);
-#endif
     mem += sizeof (void *);
     mem  = (char *)(((unsigned long)(mem + WORD_ALIGN_1)) & WORD_ALIGN_MASK);
 


More information about the parrot-commits mailing list