mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Duh! put the thread name into the section that is zero'd on allocation
(by default there is no name)
This commit is contained in:
parent
2c9a55e142
commit
e1189b25d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154534
@ -291,6 +291,7 @@ struct thread {
|
||||
int td_xsig; /* (c) Signal for ptrace */
|
||||
u_long td_profil_addr; /* (k) Temporary addr until AST. */
|
||||
u_int td_profil_ticks; /* (k) Temporary ticks until AST. */
|
||||
char td_name[MAXCOMLEN + 1]; /* (*) Thread name. */
|
||||
#define td_endzero td_base_pri
|
||||
|
||||
/* Copied during fork1() or thread_sched_upcall(). */
|
||||
@ -321,7 +322,6 @@ struct thread {
|
||||
vm_offset_t td_altkstack; /* (a) Kernel VA of alternate kstack. */
|
||||
int td_altkstack_pages; /* (a) Size of alternate kstack. */
|
||||
volatile u_int td_critnest; /* (k*) Critical section nest level. */
|
||||
char td_name[MAXCOMLEN + 1]; /* (*) Thread name. */
|
||||
struct mdthread td_md; /* (k) Any machine-dependent fields. */
|
||||
struct td_sched *td_sched; /* (*) Scheduler-specific data. */
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user