[svn:parrot] r40069 - branches/tt761_keys_revamp/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Mon Jul 13 22:44:56 UTC 2009


Author: bacek
Date: Mon Jul 13 22:44:55 2009
New Revision: 40069
URL: https://trac.parrot.org/parrot/changeset/40069

Log:
[pmc] Add more description into HashIterator.

Modified:
   branches/tt761_keys_revamp/src/pmc/hashiterator.pmc

Modified: branches/tt761_keys_revamp/src/pmc/hashiterator.pmc
==============================================================================
--- branches/tt761_keys_revamp/src/pmc/hashiterator.pmc	Mon Jul 13 22:44:29 2009	(r40068)
+++ branches/tt761_keys_revamp/src/pmc/hashiterator.pmc	Mon Jul 13 22:44:55 2009	(r40069)
@@ -79,8 +79,8 @@
     ATTR PMC        *pmc_hash;      /* the Hash which this Iterator iterates */
     ATTR Hash       *parrot_hash;   /* Underlying implementation of hash */
     ATTR HashBucket *bucket;        /* Current bucket */
-    ATTR INTVAL      total_buckets; /* */
-    ATTR INTVAL      pos;           /* */
+    ATTR INTVAL      total_buckets; /* Total buckets in index */
+    ATTR INTVAL      pos;           /* Current position in index */
     ATTR INTVAL      elements;      /* How many elements left to iterate over */
 
 /*
@@ -143,6 +143,7 @@
         PMC *hash = PARROT_HASHITERATOR(SELF)->pmc_hash;
         if (hash)
              Parrot_gc_mark_PObj_alive(INTERP, (PObj *)hash);
+        /* We don't mark underlying parrot_hash. Hash PMC will mark it */
     }
 
 /*


More information about the parrot-commits mailing list