summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/hcreate.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-06-23 22:54:25 +0000
committeralc <alc@FreeBSD.org>2012-06-23 22:54:25 +0000
commit2d5bdc7fffd9e35e7cecb5d639ce503ef8c73fef (patch)
treecdf0a5772062dde3b34e97f959e9c36e5c86c790 /lib/libc/stdlib/hcreate.c
parent25394a891337184919632a8f06d2fe2e5c86ddf2 (diff)
downloadFreeBSD-src-2d5bdc7fffd9e35e7cecb5d639ce503ef8c73fef.zip
FreeBSD-src-2d5bdc7fffd9e35e7cecb5d639ce503ef8c73fef.tar.gz
Introduce reserve_pv_entry() and use it in pmap_pv_demote_pde(). In order
to add PV list locking to pmap_pv_demote_pde(), it is necessary to change the way that pmap_pv_demote_pde() allocates PV entries. Specifically, once pmap_pv_demote_pde() begins modifying the PV lists, it can't allocate any new PV chunks, because that could require the PV list lock to be dropped. So, all necessary PV chunks must be allocated in advance. To my surprise, this new approach is a few percent faster than the old one.
Diffstat (limited to 'lib/libc/stdlib/hcreate.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud