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: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/52386: pthread(3) doesn't respect
 PTHREAD_DESTRUCTOR_ITERATIONS
Date: Sun, 9 Jul 2017 19:19:07 +0200

 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.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index