[svn:parrot] r46420 - trunk/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat May 8 22:30:52 UTC 2010
Author: bacek
Date: Sat May 8 22:30:51 2010
New Revision: 46420
URL: https://trac.parrot.org/parrot/changeset/46420
Log:
Use zeroing allocating of method cache to avoid conflict with GC
Modified:
trunk/src/oo.c
Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c Sat May 8 22:30:37 2010 (r46419)
+++ trunk/src/oo.c Sat May 8 22:30:51 2010 (r46420)
@@ -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