[TEST/REVIEW/PERF] kern_thread.c tid allocation patch
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Mar 17 01:40:54 PST 2005
In message <42394F22.9060100 at freebsd.org>, David Xu writes:
>Thread ID should start from (PID_MAX + 1).
Then change:
tid_unrhdr = new_unrhdr(0, INT_MAX, &tid_lock);
to
tid_unrhdr = new_unrhdr(PID_MAX + 1, INT_MAX, &tid_lock);
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-current
mailing list