summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_gc.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>1999-07-06 00:25:38 +0000
committerjasone <jasone@FreeBSD.org>1999-07-06 00:25:38 +0000
commit88983e2fa584a0ccd018f2290d087e4db4c46350 (patch)
tree5873b217a3af72b58fdc75e5018708c367072b2d /lib/libpthread/thread/thr_gc.c
parentebc43c4f80bf19d60c03df54244e9f97ea409baa (diff)
downloadFreeBSD-src-88983e2fa584a0ccd018f2290d087e4db4c46350.zip
FreeBSD-src-88983e2fa584a0ccd018f2290d087e4db4c46350.tar.gz
Always use growable thread stacks on the i386. The VM_STACK kernel option
must be made default for the alpha before growable thread stacks are enabled for the alpha.
Diffstat (limited to 'lib/libpthread/thread/thr_gc.c')
-rw-r--r--lib/libpthread/thread/thr_gc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_gc.c b/lib/libpthread/thread/thr_gc.c
index a8e05ea..6b504d9 100644
--- a/lib/libpthread/thread/thr_gc.c
+++ b/lib/libpthread/thread/thr_gc.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_gc.c,v 1.4 1999/06/20 08:28:25 jb Exp $
+ * $Id: uthread_gc.c,v 1.5 1999/07/05 00:35:18 jasone Exp $
*
* Garbage collector thread. Frees memory allocated for dead threads.
*
@@ -38,10 +38,8 @@
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
-#ifdef _PTHREAD_GSTACK
#include <sys/types.h>
#include <sys/mman.h>
-#endif
#include <pthread.h>
#include "pthread_private.h"
@@ -136,7 +134,7 @@ _thread_gc(pthread_addr_t arg)
*/
if (pthread->attr.stackaddr_attr == NULL &&
pthread->stack != NULL) {
-#ifdef _PTHREAD_GSTACK
+#ifdef __i386__
if (pthread->attr.stacksize_attr == PTHREAD_STACK_DEFAULT) {
/* Default-size stack. Cache it: */
struct stack * spare_stack = (pthread->stack + PTHREAD_STACK_DEFAULT
@@ -172,7 +170,7 @@ _thread_gc(pthread_addr_t arg)
*/
if (pthread->attr.stackaddr_attr == NULL &&
pthread->stack != NULL) {
-#ifdef _PTHREAD_GSTACK
+#ifdef __i386__
if (pthread->attr.stacksize_attr == PTHREAD_STACK_DEFAULT) {
/* Default-size stack. Cache it: */
struct stack * spare_stack = (pthread->stack + PTHREAD_STACK_DEFAULT
OpenPOWER on IntegriCloud