[svn:parrot] r47236 - branches/gc_massacre/src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Mon May 31 23:08:30 UTC 2010


Author: bacek
Date: Mon May 31 23:08:29 2010
New Revision: 47236
URL: https://trac.parrot.org/parrot/changeset/47236

Log:
Move ListItem.owner under ifndef NDEBUG condition

Modified:
   branches/gc_massacre/src/gc/list.c
   branches/gc_massacre/src/gc/list.h

Modified: branches/gc_massacre/src/gc/list.c
==============================================================================
--- branches/gc_massacre/src/gc/list.c	Mon May 31 20:25:06 2010	(r47235)
+++ branches/gc_massacre/src/gc/list.c	Mon May 31 23:08:29 2010	(r47236)
@@ -66,8 +66,9 @@
         list->first = item;
 
     list->count++;
-
+#ifndef NDEBUG
     item->owner = list;
+#endif
 }
 
 PARROT_EXPORT

Modified: branches/gc_massacre/src/gc/list.h
==============================================================================
--- branches/gc_massacre/src/gc/list.h	Mon May 31 20:25:06 2010	(r47235)
+++ branches/gc_massacre/src/gc/list.h	Mon May 31 23:08:29 2010	(r47236)
@@ -20,7 +20,9 @@
     struct List_Item_Header *prev;
     struct List_Item_Header *next;
 
+#ifndef NDEBUG
     struct Linked_List *owner;
+#endif
 } List_Item_Header;
 
 /* Double-linked list. */


More information about the parrot-commits mailing list