This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] libstdc++/17780


>     if (__gthread_active_p())
>       {
>-	__gthread_mutex_lock(__bin._M_mutex);
> 	if (__bin._M_first[0] == NULL)
> 	  {
>-	    // No need to hold the lock when we are adding a
>-	    // whole chunk to our own list.
>-	    __gthread_mutex_unlock(__bin._M_mutex);
>
>
>Basically, you don't take the lock before checking _bin._M_first[0] == NULL.

Whoops. You are right. I'll revert this bit.

Thanks!

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]