[Mono-devel-list] handles.c patch

Dick Porter dick at ximian.com
Wed Jul 23 11:39:03 EDT 2003


On Wed, 2003-07-23 at 01:29, Bernie Solomon wrote:
>  
> I eventually realized that one reason things were slow for me is that
> the thread management thread was in a busy loop because mutexes
> weren't initialized so calls continually failed.

Strange...

> I am not 100% sure this is the correct fix but it addresses my test
> case. I am currently configuring with shared handles disabled. The fix
> makes everything twice as fast for me having removed a busy thread.

This shouldn't actually do anything, because the shared mutex code
should be disabled.  Please try the attached patch instead and see if
that has the same effect.

>  
> I assume this matters on HP because initializing mutexes to zeroes
> isn't the right thing to do yet presumably is OK on other platforms.

I'll save your suggested patch for when I get the time to make the
shared mutex code work.  The new Linux thread libraries support
process-shared objects.

Thanks,

- Dick


-------------- next part --------------
A non-text attachment was scrubbed...
Name: shared-diff
Type: text/x-patch
Size: 942 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030723/2b15ea3a/attachment.bin 


More information about the Mono-devel-list mailing list