[Mono-bugs] [Bug 667921] [Dynamic methods] Crash with multi-threaded linq

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 10 18:06:28 EST 2011



--- Comment #9 from Rolf Bjarne Kvinge <rkvinge at novell.com> 2011-02-11 00:06:27 CET ---
This patch makes the program go down a lot faster, the test program hasn't
finished once in tens of executions now.

Note that it's no longer necessary to run using the provided binary either,
just compile and run the C# file.

diff --git a/mono/utils/mono-codeman.c b/mono/utils/mono-codeman.c
index 22284de..bfaedd9 100644
--- a/mono/utils/mono-codeman.c
+++ b/mono/utils/mono-codeman.c
@@ -278,6 +278,7 @@ free_chunklist (CodeChunk *chunk)
         dead = chunk;
         mono_profiler_code_chunk_destroy ((gpointer) dead->data);
         chunk = chunk->next;
+        memset (dead->data, 0xCC, dead->size);
         if (dead->flags == CODE_FLAG_MMAP) {
             mono_vfree (dead->data, dead->size);
             /* valgrind_unregister(dead->data); */

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list