HomeFreeBSD

Save a call to pmap_remove() if entry cannot have any pages mapped.

Description

Save a call to pmap_remove() if entry cannot have any pages mapped.

Due to the way rtld creates mappings for the shared objects, each dso
causes unmap of at least three guard map entries. For instance, in
the buildworld load, this change reduces the amount of pmap_remove()
calls by 1/5.

Profiled by: alc
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D16148

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D16148: Save a call to pmap_remove() if entry cannot have any pages mapped.
Parents
rS336044: Regen arm64 linux sysent after r336043
Branches
Unknown
Tags
Unknown