Remove unique id field which is no longer used by debugger.
This commit is contained in:
parent
02e98e495b
commit
bc1eb018c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144711
@ -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() */
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user