summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_gc.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-05-29 20:46:53 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-05-29 20:46:53 +0000
commitb3cdf7ae2eb9a89e6f906aad132866185cf4dfe8 (patch)
tree24627382282fb3a2ee03fe4390d9fac487628e88 /lib/libthr/thread/thr_gc.c
parent981f4968f09101e148b2fd8f1389d087948bc00c (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_gc.c')
-rw-r--r--lib/libthr/thread/thr_gc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_gc.c b/lib/libthr/thread/thr_gc.c
index 9e263145ab5c..e2aa75331893 100644
--- a/lib/libthr/thread/thr_gc.c
+++ b/lib/libthr/thread/thr_gc.c
@@ -142,6 +142,13 @@ _thread_gc(pthread_addr_t arg)
pthread_cln = pthread;
_SPINUNLOCK(&pthread->lock);
+
+ /*
+ * Retire the architecture specific id so it may be
+ * used for new threads.
+ */
+ _retire_thread(pthread_cln->arch_id);
+
}
/*