diff options
author | cem <cem@FreeBSD.org> | 2015-12-17 17:48:57 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2015-12-17 17:48:57 +0000 |
commit | 4508a28d2377405f5b6c7b06d0577c1c507d5cf8 (patch) | |
tree | dd10b6aaa2a7aa074830126200381557f8fee0a5 /lib/libc/stdlib/reallocarray.3 | |
parent | 567d1118843d54c316a66b50fdd85a8e70a281c0 (diff) | |
download | FreeBSD-src-4508a28d2377405f5b6c7b06d0577c1c507d5cf8.zip FreeBSD-src-4508a28d2377405f5b6c7b06d0577c1c507d5cf8.tar.gz |
vm_page_replace: add wrapper to KASSERT about old page
It turns out the callers of vm_page_replace know exactly which page they are
replacing and would like to assert about it. Change those from hard panics to
KASSERTs, and provide them with a wrapper so they don't have to deal with
warnings from an INVARIANTS-dependent dead store of the return value of
vm_page_replace.
Submitted by: Ryan Libby <rlibby@gmail.com>
Reviewed by: alc, kib (earlier version)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D4497
Diffstat (limited to 'lib/libc/stdlib/reallocarray.3')
0 files changed, 0 insertions, 0 deletions