summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regfree.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2013-01-19 00:50:12 +0000
committerian <ian@FreeBSD.org>2013-01-19 00:50:12 +0000
commit87dd3ff9a4d64b9a26b151e08efe00bffebf9b88 (patch)
tree6cbe49297c729b138c137e3a77a8e8b5e2c36593 /lib/libc/regex/regfree.c
parenta1e34841434a947a5784c4c395e887c0faa16543 (diff)
downloadFreeBSD-src-87dd3ff9a4d64b9a26b151e08efe00bffebf9b88.zip
FreeBSD-src-87dd3ff9a4d64b9a26b151e08efe00bffebf9b88.tar.gz
Eliminate the need for an intermediate array of indices into the arrays of
interrupt counts and names, by making the names into an array of fixed-length strings that can be directly indexed. This eliminates extra memory accesses on every interrupt to increment the counts. As a side effect, it also fixes a bug that would corrupt the names data if a name was longer than MAXCOMLEN, which led to incorrect vmstat -i output. Approved by: cognet (mentor)
Diffstat (limited to 'lib/libc/regex/regfree.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud