summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-10-01 21:54:43 +0000
committerjhb <jhb@FreeBSD.org>2015-10-01 21:54:43 +0000
commitf91b4f607a51f46d1c5056fd831a94251228f651 (patch)
tree79913cc588b0f6879d83ec8020a5b06ba49653d2 /lib/libc
parent3943d4df0cd5acdac6ffa1d65dd4a20ab4637677 (diff)
downloadFreeBSD-src-f91b4f607a51f46d1c5056fd831a94251228f651.zip
FreeBSD-src-f91b4f607a51f46d1c5056fd831a94251228f651.tar.gz
MFC 286256:
kgdb uses td_oncpu to determine if a thread is running and should use a pcb from stoppcbs[] rather than the thread's PCB. However, exited threads retained td_oncpu from the last time they ran, and newborn threads had their CPU fields cleared to zero during fork and thread creation since they are in the set of fields zeroed when threads are setup. To fix, explicitly update the CPU fields for exiting threads in sched_throw() to reflect the switch out and reset the CPU fields for new threads in sched_fork_thread() to NOCPU.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud