develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34046 - trunk/src

From:
cotto
Date:
December 17, 2008 12:59
Subject:
[svn:parrot] r34046 - trunk/src
Message ID:
20081217205919.842CBCBA12@x12.develooper.com
Author: cotto
Date: Wed Dec 17 12:59:18 2008
New Revision: 34046

Modified:
   trunk/src/hash.c

Log:
[hash] Fix the definition of N_BUCKETS.  This fixes OrderedHash's clone() and
keeps garbage from accumulating near the end of hash->bs.


Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	(original)
+++ trunk/src/hash.c	Wed Dec 17 12:59:18 2008
@@ -31,7 +31,7 @@
 
 #define INITIAL_BUCKETS 16
 
-#define N_BUCKETS(n) ((n) - (n)/4)
+#define N_BUCKETS(n) (n)
 #define HASH_ALLOC_SIZE(n) (N_BUCKETS(n) * sizeof (HashBucket) + \
                              (n) * sizeof (HashBucket *))
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About