NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/52386: pthread(3) doesn't respect PTHREAD_DESTRUCTOR_ITERATIONS
The following reply was made to PR lib/52386; it has been noted by GNATS.
From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, lib-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, n54%gmx.com@localhost
Cc:
Subject: Re: lib/52386: pthread(3) doesn't respect PTHREAD_DESTRUCTOR_ITERATIONS
Date: Sun, 9 Jul 2017 16:20:39 -0400
On Jul 9, 5:20pm, joerg%bec.de@localhost (Joerg Sonnenberger) wrote:
-- Subject: Re: lib/52386: pthread(3) doesn't respect PTHREAD_DESTRUCTOR_ITER
| On Sun, Jul 09, 2017 at 03:30:00PM +0000, n54%gmx.com@localhost wrote:
| > PTHREAD_DESTRUCTOR_ITERATIONS is not respected as the maximum number of destructor iterations.
|
| The test case is incorrect. PTHREAD_DESTRUCTOR_ITERATIONS specifies a
| lower limit on the number of iterations performed. It is explicitly not
| a hard limit. To quote POSIX:
|
| Calling pthread_setspecific() from a thread-specific data destructor
| routine may result either in lost storage (after at least
| PTHREAD_DESTRUCTOR_ITERATIONS attempts at destruction) or in an infinite
| loop.
I agree, but making the code using the iteration constant we advertise
is simple enough.
christos
Home |
Main Index |
Thread Index |
Old Index