summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-04-06 13:57:31 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-04-06 13:57:31 +0000
commited60415691d3e58f9e06e27a395c6063502dbee2 (patch)
tree89887349d79c19f91c9573bdac404989977b27ee /lib/libthr
parenta991e5caf862c4e7b2c366423ba5e4953488d250 (diff)
downloadFreeBSD-src-ed60415691d3e58f9e06e27a395c6063502dbee2.zip
FreeBSD-src-ed60415691d3e58f9e06e27a395c6063502dbee2.tar.gz
Remove unique id field which is no longer used by debugger.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_init.c1
-rw-r--r--lib/libthr/thread/thr_list.c15
-rw-r--r--lib/libthr/thread/thr_private.h1
3 files changed, 2 insertions, 15 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index f9545c2..a0f4e5c 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -369,7 +369,6 @@ init_main_thread(struct pthread *thread)
TAILQ_INIT(&thread->pri_mutexq);
thread->state = PS_RUNNING;
- thread->uniqueid = 0;
/* Others cleared to zero by thr_alloc() */
}
diff --git a/lib/libthr/thread/thr_list.c b/lib/libthr/thread/thr_list.c
index 905ec77..6fb228b 100644
--- a/lib/libthr/thread/thr_list.c
+++ b/lib/libthr/thread/thr_list.c
@@ -61,7 +61,6 @@ static umtx_t free_thread_lock;
static umtx_t tcb_lock;
static int free_thread_count = 0;
static int inited = 0;
-static u_int64_t next_uniqueid = 1;
LIST_HEAD(thread_hash_head, pthread);
#define HASH_QUEUES 128
@@ -217,23 +216,13 @@ thr_destroy(struct pthread *curthread __unused, struct pthread *thread)
}
/*
- * Add an active thread:
- *
- * o Assign the thread a unique id (which GDB uses to track
- * threads.
- * o Add the thread to the list of all threads and increment
- * number of active threads.
+ * Add the thread to the list of all threads and increment
+ * number of active threads.
*/
void
_thr_link(struct pthread *curthread, struct pthread *thread)
{
THREAD_LIST_LOCK(curthread);
- /*
- * Initialize the unique id (which GDB uses to track
- * threads), add the thread to the list of all threads,
- * and
- */
- thread->uniqueid = next_uniqueid++;
THR_LIST_ADD(thread);
if (thread->attr.flags & PTHREAD_DETACHED)
thread->tlflags |= TLFLAGS_DETACHED;
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index 5763007..405340f 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -339,7 +339,6 @@ struct pthread {
#define THR_MAGIC ((u_int32_t) 0xd09ba115)
u_int32_t magic;
char *name;
- u_int64_t uniqueid; /* for gdb */
/*
* Lock for accesses to this thread structure.
OpenPOWER on IntegriCloud