svn commit: r252458 - head/lib/libc/iconv

John-Mark Gurney jmg at funkthat.com
Mon Jul 1 17:06:12 UTC 2013


Peter Wemm wrote this message on Mon, Jul 01, 2013 at 08:06 +0000:
>   Initialize the pthread rwlock.  Note that upstream has three
>   separate locks.  The file-local static lock appears intentional.

I believe that when I was tracing the lock issues, that there were
some deadlocks that can occur even w/ separate locks.  I did post a
patch that made the lock a single lock and avoided the issues w/ the
lock, but as I didn't have time to test it, never committed it.

This definitely needs some real software engineering applied to it,
either put this declaration in the respective files (so that if someone
uses this is a new file, they won't get burned) and comments around
the macros that it isn't a global lock.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the svn-src-all mailing list