[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] libthreads: mutex_lock holder debugging
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] libthreads: mutex_lock holder debugging |
Date: |
Thu, 20 May 2010 00:52:51 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Sergio Lopez, le Thu 20 May 2010 00:37:48 +0200, a écrit :
> El Wed, 19 May 2010 16:27:07 +0200
> Samuel Thibault <samuel.thibault@gnu.org> escribió:
>
> > Hello,
> >
> > Sergio Lopez, le Fri 14 May 2010 12:35:41 +0200, a écrit :
> > > I've preferred to create a new definition conditional instead of
> > > using WAIT_DEBUG, since this one changes cproc_t structure size.
> >
> > Mmm, I don't think it'd be a problem, since the cproc_t structure is
> > not exposed to users of libthreads.
> >
>
> Yes, you're right. Anyway, WAIT_DEBUG would imply a call to
> cthread_self for each mutex_lock(),
That's really far from costly, it's just a simple computation and a
dereference. libthreads may be used not only for translators, so I
believe it's still useful to record the holder thread.
Samuel