summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2016-09-01 10:41:03 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2016-09-01 10:41:03 +0000
commit6b9d0bb04f5a956920bc04d58e535cbc84e4bd52 (patch)
treebdb312a691e107e25687181adfc3c98714da1a6d /lib/librthread/rthread.c
parent138db23427e3b95810c63488e9dc0cfd1e2f512b (diff)
Less lock contention by using more pools for mult-threaded programs.
tested by many (thanks!) ok tedu, guenther@
Diffstat (limited to 'lib/librthread/rthread.c')
-rw-r--r--lib/librthread/rthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index b7e82feabc7..399f42cb48d 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.91 2016/05/07 19:05:22 guenther Exp $ */
+/* $OpenBSD: rthread.c,v 1.92 2016/09/01 10:41:02 otto Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -38,6 +38,7 @@
#include <pthread.h>
#include "cancel.h" /* in libc/include */
+#include "thread_private.h"
#include "rthread.h"
#include "rthread_cb.h"
@@ -247,6 +248,8 @@ _rthread_init(void)
_threads_ready = 1;
+ _malloc_init(1);
+
_rthread_debug(1, "rthread init\n");
}