[svn:parrot] r48480 - branches/gc_threshold_tuning/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Aug 14 00:32:55 UTC 2010


Author: chromatic
Date: Sat Aug 14 00:32:55 2010
New Revision: 48480
URL: https://trac.parrot.org/parrot/changeset/48480

Log:
[PMC] Made Hash PMC's mark() skip empty hashes.

Modified:
   branches/gc_threshold_tuning/src/pmc/hash.pmc

Modified: branches/gc_threshold_tuning/src/pmc/hash.pmc
==============================================================================
--- branches/gc_threshold_tuning/src/pmc/hash.pmc	Sat Aug 14 00:32:52 2010	(r48479)
+++ branches/gc_threshold_tuning/src/pmc/hash.pmc	Sat Aug 14 00:32:55 2010	(r48480)
@@ -110,7 +110,7 @@
 
     VTABLE void mark() {
         Hash * const hash = (Hash *)SELF.get_pointer();
-        if (hash != NULL)
+        if (hash && hash->entries)
             parrot_mark_hash(INTERP, hash);
     }
 


More information about the parrot-commits mailing list