FreeBSD Bugzilla – Attachment 13238 Details for
Bug 25300
libc_r threads library ill-behaved with large HZ kernel setting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 818 bytes, created by
pavel
on 2001-02-23 09:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
pavel
Created:
2001-02-23 09:20:01 UTC
Size:
818 bytes
patch
obsolete
>--- lib/libc_r/uthread/uthread_init.c.ORIG Wed Feb 21 21:31:31 2001 >+++ lib/libc_r/uthread/uthread_init.c Wed Feb 21 21:36:59 2001 >@@ -336,7 +336,11 @@ > mib[1] = KERN_CLOCKRATE; > len = sizeof (struct clockinfo); > if (sysctl(mib, 2, &clockinfo, &len, NULL, 0) == 0) >- _clock_res_usec = clockinfo.tick; >+ /* NPMOD - use larger of clockinfo.tick or >+ CLOCK_RES_USEC (=10ms) for the uthreads >+ base tick (pavel - 21-Feb-2001):*/ >+ _clock_res_usec = (clockinfo.tick > CLOCK_RES_USEC) ? >+ clockinfo.tick : CLOCK_RES_USEC; > > /* Get the table size: */ > if ((_thread_dtablesize = getdtablesize()) < 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25300
: 13238