[Mono-bugs] [Bug 537764] Mono crashes on OS X Snow Leopard

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 28 17:53:50 EST 2009



Laurent Etiemble <laurent.etiemble at gmail.com> changed:

           What    |Removed                     |Added
 Attachment #331453|0                           |1
        is obsolete|                            |

--- Comment #26 from Laurent Etiemble <laurent.etiemble at gmail.com> 2009-12-28 22:53:42 UTC ---
Created an attachment (id=334416)
 --> (http://bugzilla.novell.com/attachment.cgi?id=334416)
Extension of embedding API to allow foreign thread tracking

Here is a proposal for an embedding API to allow foreign thread tracking.

The API allows:
- To be notified when a foreign thread is registered with the Mono runtime
- To be notified when a foreign thread is de-registered from the Mono runtime
- To override default Mono behavior by telling that foreign thread are
de-registered externally
- To de-register a foreign thread from the Mono runtime

There are two cases of use:
1) An application hooks the Mono runtime to be notified when foreign thread are
2) An application hooks the Mono runtime to handle the foreign thread
de-registration. When a foreign thread is registered, the application is
notified. The application is then responsible for the de-registration of the
foreign thread.

Some notes:
- The patch has been generated against the 2.6.1 release sources.
- I have put the embedding API in the "mono/utils" folder, because it is
referenced both as a public API and used in the GC.
- I have decorated the API to work only if pthread is present. We can see later
if other platforms have similar needs.
- I only work on the Bohem GC. I don't have taken time to look into the SGen
- I have tested the embedding API on Leopard and Snow Leopard, and it works at
it should for the 2 cases above.
- I will post on Mono-Dev this entry in order to get a larger feedback.

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

More information about the mono-bugs mailing list