[svn:parrot] r45340 - branches/avl_string_cache/src/string
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Mar 31 06:18:44 UTC 2010
Author: bacek
Date: Wed Mar 31 06:18:42 2010
New Revision: 45340
URL: https://trac.parrot.org/parrot/changeset/45340
Log:
Use fixed size allocator for AVL nodes.
Modified:
branches/avl_string_cache/src/string/api.c
Modified: branches/avl_string_cache/src/string/api.c
==============================================================================
--- branches/avl_string_cache/src/string/api.c Wed Mar 31 05:46:14 2010 (r45339)
+++ branches/avl_string_cache/src/string/api.c Wed Mar 31 06:18:42 2010 (r45340)
@@ -796,7 +796,9 @@
return vv->value;
/* Not found. Allocate new node and insert */
- vv = mem_gc_allocate_zeroed_typed(interp, AVLStringNode);
+ vv = (AVLStringNode*)Parrot_gc_allocate_fixed_size_storage(interp,
+ sizeof (AVLStringNode));
+ memset(vv, 0, sizeof (AVLStringNode));
/* Fill it */
vv->str = node.str;
More information about the parrot-commits
mailing list