[svn:parrot] r46417 - branches/codestring/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat May 8 22:29:01 UTC 2010
Author: bacek
Date: Sat May 8 22:29:01 2010
New Revision: 46417
URL: https://trac.parrot.org/parrot/changeset/46417
Log:
Use zeroing allocating of method cache to avoid conflict with GC
Modified:
branches/codestring/src/oo.c
Modified: branches/codestring/src/oo.c
==============================================================================
--- branches/codestring/src/oo.c Sat May 8 21:42:00 2010 (r46416)
+++ branches/codestring/src/oo.c Sat May 8 22:29:01 2010 (r46417)
@@ -944,7 +944,8 @@
if (!e) {
/* when here no or no correct entry was at [bits] */
- e = mem_gc_allocate_typed(interp, Meth_cache_entry);
+ /* Use zeroed allocation because find_method_direct can trigger GC */
+ e = mem_gc_allocate_zeroed_typed(interp, Meth_cache_entry);
mc->idx[type][bits] = e;
More information about the parrot-commits
mailing list