summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2010-01-15 07:18:46 +0000
committerbrooks <brooks@FreeBSD.org>2010-01-15 07:18:46 +0000
commitc67fa34ee5c440057e9c69882e34f7b0175c0d65 (patch)
tree92e99e071d3885a47f5fe1a2f6d26e93de1dbe86 /sys/kern/subr_sleepqueue.c
parentf354ae0814810e4c8aeeea7b9765ba2b6b7d51b2 (diff)
downloadFreeBSD-src-c67fa34ee5c440057e9c69882e34f7b0175c0d65.zip
FreeBSD-src-c67fa34ee5c440057e9c69882e34f7b0175c0d65.tar.gz
Only allocate the space we need before calling kern_getgroups instead
of allocating what ever the user asks for up to "ngroups_max + 1". On systems with large values of kern.ngroups this will be more efficient. The now redundant check that the array is large enough in kern_getgroups() is deliberate to allow this change to be merged to stable/8 without breaking potential third party consumers of the API. Reported by: bde MFC after: 28 days
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud