[Mono-dev] Request for backport of garbage collection patch

Matt Jones mattj at google.com
Tue Jul 17 19:54:34 EDT 2007

Hi -

I'm working on improving mono-under-wine (on the wine side), and I've
been hitting a bug in the mono garbage collector fixed by commit
#77073 ([1]). The bug in question is a race condition between
GetExitCodeThread and SuspendThread - if a thread terminates between
the two, SuspendThread will fail. The race condition is pretty
reliably triggered by the regression test suite when running under

The current patch could actually be reduced further (the
GetExitCodeThread block could be fully deleted, as it is rendered
redundant), but it works as is.

Any chance this patch could be applied to the maintenance branch? The
patch applies cleanly to

Thank you very much,
-Matt Jones

[1] http://anonsvn.mono-project.com/viewcvs/trunk/mono/libgc/win32_threads.c?rev=77073&view=log

More information about the Mono-devel-list mailing list