threads/148515: Memory / syslog strangeness in FreeBSD 8.x ( possible leak/ threading issue )

Jilles Tjoelker jilles at stack.nl
Thu Jul 29 21:30:04 UTC 2010


The following reply was made to PR threads/148515; it has been noted by GNATS.

From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, vikash.badal at is.co.za
Cc:  
Subject: Re: threads/148515: Memory / syslog strangeness in FreeBSD 8.x (
 possible leak/ threading issue )
Date: Thu, 29 Jul 2010 23:27:33 +0200

 The difference could perhaps be explained by malloc(3) changes.
 8.x's malloc tries to keep more memory per-thread, which reduces
 contention but increases memory usage.
 
 By the way, your program may behave erratically when it terminates or
 when pthread_create() fails because pthread_cancel() may be called on an
 uninitialized pthread_t, pthread functions are called on detached and
 terminated threads and the signal handler calls functions that are not
 async-signal-safe.
 
 -- 
 Jilles Tjoelker


More information about the freebsd-threads mailing list