[Fwd: cvs commit: src/sys/kern sys_generic.c]
From: Andre Oppermann (andre_at_freebsd.org)
Date: 08/27/04
- Previous message: Bob Willcox: "Re: nfsd slows with age"
- Next in thread: Doug White: "Re: [Fwd: cvs commit: src/sys/kern sys_generic.c]"
- Reply: Doug White: "Re: [Fwd: cvs commit: src/sys/kern sys_generic.c]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 23:30:16 +0200 To: freebsd-current@freebsd.org
Maybe this fixes poll() problems/errors some people have seen on their
machines. I am not sure if this alignment would have caused problems
on non-ia32 architectures but it is certainly more correct now. ;-)
-- Andre
attached mail follows:
Date: Fri, 27 Aug 2004 21:23:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
andre 2004-08-27 21:23:50 UTC
FreeBSD src repository
Modified files:
sys/kern sys_generic.c
Log:
Poll() uses the array smallbits that is big enough to hold 32 struct
pollfd's to avoid calling malloc() on small numbers of fd's. Because
smalltype's members have type char, its address might be misaligned
for a struct pollfd. Change the array of char to an array of struct
pollfd.
PR: kern/58214
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: bde (a long time ago)
MFC after: 3 days
Revision Changes Path
1.133 +3 -3 src/sys/kern/sys_generic.c
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Bob Willcox: "Re: nfsd slows with age"
- Next in thread: Doug White: "Re: [Fwd: cvs commit: src/sys/kern sys_generic.c]"
- Reply: Doug White: "Re: [Fwd: cvs commit: src/sys/kern sys_generic.c]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]