diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-04-15 21:35:17 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-04-15 21:35:17 +0000 |
commit | fa619d7bd2e087182c8c00dac32225a414d6de0a (patch) | |
tree | 83f81e0b5fa13cbcda9301d5beccc3fe5a9a5bbc /lib | |
parent | cb3d7d732eb032fd0f48f31a92c3db0acd7c0663 (diff) |
Add a bit of paranoia to uvm_pageinsert.
At various times diffs have had debugging that checked that we don't
insert a page into the tree on top of an existing page, leaking that
page's references. Until the recent hackathon (and introduction if
uvm_pagealloc_multi) the bufcache for example did a rb tree look up on
insert to check (under #ifdef DEBUG || 1) so instead just check it on
pageinsert every time, since RB_INSERT returns any duplicates so this
check is pretty much free.
``emphatically yes'' beck@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions