Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 21:30:03 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/148515: Memory / syslog strangeness in FreeBSD 8.x ( possible leak/ threading issue )
Message-ID:  <201007292130.o6TLU3Xi030068@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/148515; it has been noted by GNATS.

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, vikash.badal@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007292130.o6TLU3Xi030068>