[svn:parrot] r41055 - branches/pluggable_runcore/src/runcore
cotto at svn.parrot.org
cotto at svn.parrot.org
Sun Sep 6 09:57:33 UTC 2009
Author: cotto
Date: Sun Sep 6 09:57:33 2009
New Revision: 41055
URL: https://trac.parrot.org/parrot/changeset/41055
Log:
[profiling] add a note about a workaround for an apparent memory corruption bug
Modified:
branches/pluggable_runcore/src/runcore/cores.c
Modified: branches/pluggable_runcore/src/runcore/cores.c
==============================================================================
--- branches/pluggable_runcore/src/runcore/cores.c Sun Sep 6 09:51:27 2009 (r41054)
+++ branches/pluggable_runcore/src/runcore/cores.c Sun Sep 6 09:57:33 2009 (r41055)
@@ -1099,6 +1099,11 @@
runcore->profiling_flags = 0;
runcore->runloop_count = 0;
runcore->level = 0;
+ /* XXX: workaround for a nasty memory corruption bug that prevents the
+ * profiling of Rakudo hello world. Normally this would be 32, but when
+ * profiling hello world it becomes corrupted when growing to 512. Setting
+ * it to this value prevents the need for reallocation and avoids exposing
+ * the corruption. Also, the bug doesn't affect everyone. */
runcore->time_size = 1024;
runcore->time = mem_allocate_n_typed(runcore->time_size, UHUGEINTVAL);
Profiling_first_loop_SET(runcore);
More information about the parrot-commits
mailing list