diff options
author | alc <alc@FreeBSD.org> | 2016-10-01 19:30:28 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2016-10-01 19:30:28 +0000 |
commit | ef0b439c822bffc80175b9dfb78957bb807d576d (patch) | |
tree | 0160d2729d42e24c2952c09ab03d4166a8895bd1 /lib/libc/stdlib/reallocarray.c | |
parent | c83481c3142b3f842f75e35f0359ab1e4a918a1c (diff) | |
download | FreeBSD-src-ef0b439c822bffc80175b9dfb78957bb807d576d.zip FreeBSD-src-ef0b439c822bffc80175b9dfb78957bb807d576d.tar.gz |
MFC r305213,305319,305398
As an optimization to the machine-independent layer, change the machine-
dependent pmap_ts_referenced() so that it updates the page's dirty field
if a modified bit is found while counting reference bits. This
opportunistic update can be performed at low cost and can eliminate the
need for some future calls to pmap_is_modified() by the machine-
independent layer.
Replace the number 4 in sparc64's pmap_ts_referenced() by
PMAP_TS_REFERENCED_MAX, like we've done elsewhere, e.g., amd64.
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions