[Mono-bugs] [Bug 672879] ReleaseInterfaces is called by GC thread.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 2 18:31:19 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=672879

https://bugzilla.novell.com/show_bug.cgi?id=672879#c13


tom hindle <tom_hindle at sil.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #448762|0                           |1
        is obsolete|                            |

--- Comment #13 from tom hindle <tom_hindle at sil.org> 2011-09-02 22:31:18 UTC ---
Created an attachment (id=449094)
 --> (http://bugzilla.novell.com/attachment.cgi?id=449094)
Patch based upon suggestions by Robert Jordon, for initial review.

SynchronizationContext.Current returns NULL when called on GC threads.
(SynchronizationContext internal state is ThreadStatic)

So each __ComObject now has a reference to its creators SynchronizationContext.

I've tested this patch successfully with one of my Application that needs it.

I am a little concerned about the performance hit caused by resurrecting the
__ComObject in the finalizer. Does anyone else share this concern?

Thanks, yet again, guys for your help!

-- 
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